Beispiel #1
0
 public void CreatingDataBaseEstructure()
 {
     using (NeptunoContext context = new NeptunoContext())
     {
         DbInitializer.Initialize(context);
     }
 }
Beispiel #2
0
        public void GetProductos()
        {
            var context = new NeptunoContext();

            var repo = new RepositoryGeneric <Producto>(context);

            Func <IQueryable <Producto>, IOrderedQueryable <Producto> > orderby = Ordenar();


            repo.GetMany(x => x.Activo, orderby);
        }