Exemplo n.º 1
0
            public bool TryGetPrimaryKeyValue(RealmObject instance, out object value)
            {
                EmployeeRealm employeeRealm = (EmployeeRealm)instance;

                value = (object)employeeRealm.Uid;
                return(true);
            }
Exemplo n.º 2
0
            public void CopyToRealm(RealmObject instance, bool update, bool skipDefaults)
            {
                EmployeeRealm employeeRealm = (EmployeeRealm)instance;

                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || employeeRealm.\u003CNev\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    employeeRealm.Nev = employeeRealm.\u003CNev\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || employeeRealm.\u003CTelefonok\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    IList <PhoneNumberRealm> telefonokKBackingField = employeeRealm.\u003CTelefonok\u003Ek__BackingField;
                    // ISSUE: reference to a compiler-generated field
                    employeeRealm.\u003CTelefonok\u003Ek__BackingField = (IList <PhoneNumberRealm>)null;
                    if (!skipDefaults)
                    {
                        employeeRealm.Telefonok.Clear();
                    }
                    if (telefonokKBackingField != null)
                    {
                        for (int index = 0; index < telefonokKBackingField.Count; ++index)
                        {
                            employeeRealm.get_Realm().Add <PhoneNumberRealm>((M0)telefonokKBackingField[index], update);
                            employeeRealm.Telefonok.Add(telefonokKBackingField[index]);
                        }
                    }
                }
                // ISSUE: reference to a compiler-generated field
                if (skipDefaults && employeeRealm.\u003CEmailek\u003Ek__BackingField == null)
                {
                    return;
                }
                // ISSUE: reference to a compiler-generated field
                IList <EmailAddressRealm> emailekKBackingField = employeeRealm.\u003CEmailek\u003Ek__BackingField;

                // ISSUE: reference to a compiler-generated field
                employeeRealm.\u003CEmailek\u003Ek__BackingField = (IList <EmailAddressRealm>)null;
                if (!skipDefaults)
                {
                    employeeRealm.Emailek.Clear();
                }
                if (emailekKBackingField == null)
                {
                    return;
                }
                for (int index = 0; index < emailekKBackingField.Count; ++index)
                {
                    employeeRealm.get_Realm().Add <EmailAddressRealm>((M0)emailekKBackingField[index], update);
                    employeeRealm.Emailek.Add(emailekKBackingField[index]);
                }
            }
Exemplo n.º 3
0
 public TeacherRealm(EmployeeRealm employee)
 {
     base.\u002Ector();
     this.Alkalmazott = employee;
 }