Interface IRealmObjectBase
An interface that is implemented by all objects that can be persisted in Realm. This interface is used only internally for now.
Namespace: Realms
Assembly: Realm.dll
Syntax
public interface IRealmObjectBase
Properties
| Edit this page View SourceAccessor
Gets the accessor that encapsulates the methods and properties used by the object for its functioning.
Declaration
IRealmAccessor Accessor { get; }
Property Value
Type | Description |
---|---|
IRealmAccessor |
BacklinksCount
Gets the number of objects referring to this one via either a to-one or to-many relationship.
Declaration
int BacklinksCount { get; }
Property Value
Type | Description |
---|---|
int | The number of objects referring to this one. |
DynamicApi
Gets an object encompassing the dynamic API for this Realm object instance.
Declaration
DynamicObjectApi DynamicApi { get; }
Property Value
Type | Description |
---|---|
DynamicObjectApi | A Realms.Dynamic instance that wraps this Realm object. |
IsFrozen
Gets a value indicating whether this object is frozen. Frozen objects are immutable and will not update when writes are made to the Realm. Unlike live objects, frozen objects can be used across threads.
Declaration
bool IsFrozen { get; }
Property Value
Type | Description |
---|---|
bool |
|
See Also
IsManaged
Gets a value indicating whether the object has been associated with a Realm, either at creation or via Add<T>(T, bool).
Declaration
bool IsManaged { get; }
Property Value
Type | Description |
---|---|
bool |
|
IsValid
Gets a value indicating whether this object is managed and represents a row in the database. If a managed object has been removed from the Realm, it is no longer valid and accessing properties on it will throw an exception. Unmanaged objects are always considered valid.
Declaration
bool IsValid { get; }
Property Value
Type | Description |
---|---|
bool |
|
ObjectSchema
Gets the ObjectSchema instance that describes how the Realm this object belongs to sees it.
Declaration
ObjectSchema? ObjectSchema { get; }
Property Value
Type | Description |
---|---|
ObjectSchema | A collection of properties describing the underlying schema of this object. |
Realm
Gets the Realm instance this object belongs to, or null
if it is unmanaged.
Declaration
Realm? Realm { get; }
Property Value
Type | Description |
---|---|
Realm | The Realm instance this object belongs to. |