Example #1
0
 public IQueryable <TModel> FromSqlRaw <TModel>([NotNull] string sql, [NotNull] params object[] parameters) where TModel : class
 {
     return(appDbContext.Set <TModel>().FromSqlRaw(sql, parameters));
 }
Example #2
0
 // public Repository(MFFDbContext dbContext)
 public BaseRepository(SmartLabDB dbContext)
 {
     this.dbContext = dbContext;
     dbSet          = dbContext.Set <TEntity>();
 }