Realm Xamarin
v0.78.0
Realm for Xamarin
|
Describes the complete set of classes which may be stored in a Realm, either from assembly declarations or, dynamically, by evaluating a Realm from disk. More...
Classes | |
class | Builder |
Helper class used to construct a RealmSchema. More... | |
Public Member Functions | |
ObjectSchema | Find (string name) |
Finds the definition of a class in this schema. More... | |
IEnumerator< ObjectSchema > | GetEnumerator () |
Standard method from interface IEnumerable allows the RealmSchema to be used in a foreach or ToList() . More... | |
Public Attributes | |
int | Count => _objects.Count |
Number of known classes in the schema. More... | |
Describes the complete set of classes which may be stored in a Realm, either from assembly declarations or, dynamically, by evaluating a Realm from disk.
By default this will be all the RealmObjects in all your assemblies unless you restrict with RealmConfiguration.ObjectClasses. Just because a given class may be stored in a Realm doesn't imply much overhead. There will be a small amount of metadata but objects only start to take up space once written.
ObjectSchema Find | ( | string | name | ) |
Finds the definition of a class in this schema.
name | A valid class name which may be in this schema. |
ArgumentException | Thrown if a name is not supplied. |
IEnumerator<ObjectSchema> GetEnumerator | ( | ) |
Standard method from interface IEnumerable allows the RealmSchema to be used in a foreach
or ToList()
.
References ObjectSchema.Builder.Build(), and ObjectSchema.FromType().
int Count => _objects.Count |
Number of known classes in the schema.
Count of known classes specified in this Schema.