示例#1
0
 public virtual IQueryable <T> Get()
 {
     return(context.Set <T>());
 }
示例#2
0
 public IQueryable <T> GetAll()
 {
     return(_context.Set <T>());
 }
示例#3
0
 public virtual T Create(T entity)
 {
     return(context.Set <T>().Add(entity).Entity);
 }