示例#1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Begin");
     Database.SetInitializer(new RoomMgrContextCustomInitializer());
     using (var db = new EFDataContext())
     {
         db.Database.Initialize(false);
     }
     Console.WriteLine("Successfully");
     Console.ReadLine();
 }
 public RoomRegisterController(EFDataContext _context)
 {
     this.uow = new UnitOfWork(_context);
 }
示例#3
0
 public AccountController(EFDataContext _context)
 {
     this.uow = new UnitOfWork(_context);
 }
示例#4
0
 public UnitOfWork(EFDataContext context)
 {
     this.context = context;
 }
 public RoomAssetsController(EFDataContext _context)
 {
     this.uow = new UnitOfWork(_context);
 }