Esempio n. 1
0
            public bool TryGetPrimaryKeyValue(RealmObject instance, out object value)
            {
                LessonRealm lessonRealm = (LessonRealm)instance;

                value = (object)lessonRealm.Id;
                return(true);
            }
Esempio n. 2
0
            public void CopyToRealm(RealmObject instance, bool update, bool skipDefaults)
            {
                LessonRealm lessonRealm = (LessonRealm)instance;

                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CLessonId\u003Ek__BackingField != 0)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.LessonId = lessonRealm.\u003CLessonId\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CCalendarOraType\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.CalendarOraType = lessonRealm.\u003CCalendarOraType\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.Date = lessonRealm.\u003CDate\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CCount\u003Ek__BackingField != (short)0)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.Count = lessonRealm.\u003CCount\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.StartTime = lessonRealm.\u003CStartTime\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                lessonRealm.EndTime = lessonRealm.\u003CEndTime\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CSubject\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.Subject = lessonRealm.\u003CSubject\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CSubjectCategory\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.SubjectCategory = lessonRealm.\u003CSubjectCategory\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CSubjectCategoryName\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.SubjectCategoryName = lessonRealm.\u003CSubjectCategoryName\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CClassRoom\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.ClassRoom = lessonRealm.\u003CClassRoom\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (lessonRealm.\u003CClassGroup\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.get_Realm().Add <ClassGroupRealm>((M0)lessonRealm.\u003CClassGroup\u003Ek__BackingField, update);
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.ClassGroup = lessonRealm.\u003CClassGroup\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CTeacher\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.Teacher = lessonRealm.\u003CTeacher\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CDeputyTeacher\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.DeputyTeacher = lessonRealm.\u003CDeputyTeacher\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CState\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.State = lessonRealm.\u003CState\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CStateName\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.StateName = lessonRealm.\u003CStateName\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CPresenceType\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.PresenceType = lessonRealm.\u003CPresenceType\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CPresenceTypeName\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.PresenceTypeName = lessonRealm.\u003CPresenceTypeName\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CTheme\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.Theme = lessonRealm.\u003CTheme\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CHomework\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.Homework = lessonRealm.\u003CHomework\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.TeacherHomeWorkId = lessonRealm.\u003CTeacherHomeWorkId\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CIsTanuloHaziFeladatEnabled\u003Ek__BackingField)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.IsTanuloHaziFeladatEnabled = lessonRealm.\u003CIsTanuloHaziFeladatEnabled\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CSeenByUser\u003Ek__BackingField)
                {
                    // ISSUE: explicit non-virtual call
                    // ISSUE: reference to a compiler-generated field
                    __nonvirtual(lessonRealm.SeenByUser) = lessonRealm.\u003CSeenByUser\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CIsHomeworkDone\u003Ek__BackingField)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.IsHomeworkDone = lessonRealm.\u003CIsHomeworkDone\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                if (!skipDefaults || lessonRealm.\u003CProfileId\u003Ek__BackingField != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    lessonRealm.ProfileId = lessonRealm.\u003CProfileId\u003Ek__BackingField;
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.CreatedDate = lessonRealm.\u003CCreatedDate\u003Ek__BackingField;
                // ISSUE: reference to a compiler-generated field
                if (skipDefaults && lessonRealm.\u003COsztalyCsoportId\u003Ek__BackingField == null)
                {
                    return;
                }
                // ISSUE: reference to a compiler-generated field
                lessonRealm.OsztalyCsoportId = lessonRealm.\u003COsztalyCsoportId\u003Ek__BackingField;
            }