Only chars, integral types, and strings can be used as PrimaryKeys. Declaring a PrimaryKey allows objects to be looked up and updated efficiently and enforces uniqueness for each value. The attribute can be specified on one property in a RealmObject class. You can subscribe to Realm notifications to know when Realm data in an object is updated, indicating when your app’s UI should be refreshed. For example, if your UI code is dependent on a specific Realm object, you don’t need to worry about refreshing or re-fetching it before triggering a UI redraw. This aspect of RealmObject not only keeps Realm fast and efficient, it allows your code to be simpler and more reactive. Define your models like regular C# classes public class Dog : RealmObject myDog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |