示例#1
0
        public UnitOfWork(DbContextOptions <VWFContext> options)
        {
            var context = new VWFContext(options);

            _repository = new Repository(context);
            _user       = new UserRepository(context);
            _message    = new MessageRepository(context);
            _room       = new RoomRepository(context);
        }
 public UserRepository(VWFContext context)
 {
     _context = context;
 }
示例#3
0
 public MessageRepository(VWFContext context)
 {
     _context = context;
 }
示例#4
0
 public RoomRepository(VWFContext context)
 {
     _context = context;
 }