예제 #1
0
파일: Program.cs 프로젝트: fenixio/Artisan
        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);
        }