예제 #1
0
        public ChatUnitOfWork()
        {
            _context = new ChatDBContext();

            _users = new Lazy <IUsersRepository>(() => new UserRepository());
            _chat  = new Lazy <IChatRepository>(() => new ChatRepository());
        }
예제 #2
0
 public AuthenticationController(ChatDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #3
0
 public UsersController(ChatDBContext context)
 {
     _context = context;
 }
예제 #4
0
 public ChatHub(ChatDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #5
0
 public MessagesController(ChatDBContext context)
 {
     _context = context;
 }
예제 #6
0
 public ChatRepository(ChatDBContext Context) : base(Context)
 {
 }
예제 #7
0
 public MessageRepository(ChatDBContext Context) : base(Context)
 {
 }
예제 #8
0
        public dynamic dbContext()
        {
            ChatDBContext context = this.requestHandler.ChatDBRequest();

            return(context ?? null);
        }
예제 #9
0
파일: DBTestBase.cs 프로젝트: pollyyy6/TTT
 public static void AssemblyInit(TestContext context)
 {
     db = new ChatDBContext().CreateTestContext();
     DeleteDB();
     db.Database.EnsureCreated();
 }
예제 #10
0
 public ChatModule(ChatDBContext mongoDbContext)
 {
     this.mongoDbContext = mongoDbContext;
 }
예제 #11
0
 public ChatDataAccessLayer(ChatDBContext _db)
 {
     db = _db;
 }
예제 #12
0
 public MessageHub(UserManager <IdentityUser> um, MesSRIDS SRC, ChatDBContext cdb)
 {
     _um  = um;
     _SRC = SRC;
     _cdb = cdb;
 }
예제 #13
0
 public ChatHub(ChatDBContext service)
 {
     _service = service;
 }
예제 #14
0
 public SQLMessageService(ChatDBContext context, ILoggerFactory loggerFactory)
 {
     _context = context;
     _Logger  = loggerFactory.CreateLogger("MessageRepository");
 }
 public ConversationsController(ChatDBContext context)
 {
     _context = context;
 }
예제 #16
0
 public SQLLoginService(ChatDBContext context, ILoggerFactory loggerFactory)
 {
     _context = context;
     _Logger  = loggerFactory.CreateLogger("UserRepository");
 }
예제 #17
0
 public ChatController(ChatDBContext cdb, ApplicationDbContext db)
 {
     this._cdb = cdb;
     this._db  = db;
 }
예제 #18
0
 public RegistrationController(ChatDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #19
0
 public UserRepository(ChatDBContext Context) : base(Context)
 {
 }
예제 #20
0
 public FileRepository(ChatDBContext context) : base(context)
 {
 }