public void Initialize()
 {
     Database.SetInitializer(new NetBiisDatabaseInitializer());
     _db = new NetBiisDbContext();
     _documentRepository = new DocumentRepository();
     _userRepository = new UserRepository();
 }
示例#2
0
 public UserRepository()
 {
     _ctx = new NetBiisDbContext();
 }
 public DocumentRepository()
 {
     _ctx = new NetBiisDbContext();
 }