Ejemplo n.º 1
0
        private static void DbTest()
        {
            StoreSet<Student> store = new StoreSet<Student>(
                typeof(SchoolContext)
            );

            Student student = store.FirstOrDefault(t => t.Id == 1, "Enrollments.Course");
            //Student student = store.FirstOrDefault(t => t.Id == 1);
            student.DumpToLog(Level.Info);

            Student stu2 = new Copier<Student>().Copy(student);
            stu2.DumpToLog(Level.Warn);
        }