Esempio n. 1
0
        internal static IContext CreateContext()
        {
            IContext result = null;

            if (Persistence == PersistenceType.Db)
            {
                result = new InvoiceSystemDbContext();
            }
            return(result);
        }
Esempio n. 2
0
 public Repository(InvoiceSystemDbContext _context)
 {
     context  = _context;
     entities = _context.Set <T>();
 }