Class ExplicitAttribute
An attribute that prevents the decorated class from being included in Realm's default schema.
Namespace: Realms
Assembly: Realm.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class, AllowMultiple = false)]
public class ExplicitAttribute : Attribute
Remarks
If applied at the assembly level, then all classes in that assembly will be considered explicit and will not be added to the default schema. To include explicit classes in a Realm's schema, you should include them in Schema:
var config = new RealmConfiguration
{
Schema = new[] { typeof(MyExplicitClass) }
};
var realm = Realm.GetInstance(config);