|
Realm Xamarin
v0.81.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 |
| Gets the 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 Realms.RealmSchema.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> Realms.RealmSchema.GetEnumerator | ( | ) |
Standard method from interface IEnumerable allows the RealmSchema to be used in a foreach or ToList().
References Realms.Schema.ObjectSchema.Builder.Build(), and Realms.Schema.ObjectSchema.FromType().
| int Realms.RealmSchema.Count => _objects.Count |
Gets the number of known classes in the schema.