示例#1
0
 public DataService()
 {
     _database = new RoomCourseModelContainer();
     _database.WingSet.MergeOption = MergeOption.NoTracking;
     _database.LevelSet.MergeOption = MergeOption.NoTracking;
     _database.RoomSet.MergeOption = MergeOption.NoTracking;
     _database.CourseSet.MergeOption = MergeOption.NoTracking;
 }
 public DataService()
 {
     _database = new RoomCourseModelContainer();
 }