示例#1
0
            public bool TryGetPrimaryKeyValue(RealmObject instance, out object value)
            {
                TutelaryRealm tutelaryRealm = (TutelaryRealm)instance;

                value = (object)tutelaryRealm.Id;
                return(true);
            }
示例#2
0
            public void CopyToRealm(RealmObject instance, bool update, bool skipDefaults)
            {
                TutelaryRealm tutelaryRealm = (TutelaryRealm)instance;

                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || tutelaryRealm.\u003CName\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    tutelaryRealm.Name = tutelaryRealm.\u003CName\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || tutelaryRealm.\u003CEmail\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    tutelaryRealm.Email = tutelaryRealm.\u003CEmail\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (skipDefaults && tutelaryRealm.\u003CPhoneNumber\u003Ek__BackingField == null)
                {
                    return;
                }
                // ISSUE: reference to a compiler-generated field
                tutelaryRealm.PhoneNumber = tutelaryRealm.\u003CPhoneNumber\u003Ek__BackingField;
            }