Пример #1
0
 public virtual void Add(T entity)
 {
     _context.Set <T>().Add(entity);
     Save();
 }
Пример #2
0
 public override IEnumerable <ClientPolicy> GetBy(Expression <Func <ClientPolicy, bool> > expression)
 {
     return(_context.Set <ClientPolicy>().Include("Client").Include("Policy").Where(expression));
 }