示例#1
0
 public SqlUnitOfWork(IWebApplicationConfig config)
 {
     _config       = config;
     _sqlDbContext = new SqlDbContext(_config);
 }
示例#2
0
 public SqlRepository(SqlDbContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }