public Crud(TestTokaDbContext ctx) { this.ctx = ctx; entities = ctx.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public) .Single(p => p.PropertyType == typeof(DbSet <T>)) .GetValue(ctx) as DbSet <T>; }
public void Dispose() { if (ctx != null) { ctx.Dispose(); ctx = null; } GC.SuppressFinalize(this); }
public AutosCore(TestTokaDbContext ctx) { _ctx = ctx; crud = new Crud <Auto>(_ctx); }
public CoreEntities(TestTokaDbContext ctx) { _ctx = ctx; crud = new Crud <Solicitud>(_ctx); }
public DetalleSolicitudCore(TestTokaDbContext ctx) { _ctx = ctx; crud = new Crud <DetalleSolicitud>(_ctx); }