internal static IContext CreateContext() { IContext result = null; if (Persistence == PersistenceType.Db) { result = new InvoiceSystemDbContext(); } return(result); }
public Repository(InvoiceSystemDbContext _context) { context = _context; entities = _context.Set <T>(); }