public IQueryable <T> GetAll() { using (var db = new osu2008Entities1()) { return(db.Set <T>().ToList().AsQueryable()); } }
public void Create(EventSet _event) { using (var db = new osu2008Entities1()) { var _entity = _event; db.Set <EventSet>().Add(_entity); db.SaveChanges(); } }
public void Create(T entity) { using (var db = new osu2008Entities1()) { var _entity = entity; db.Set <T>().Add(_entity); db.SaveChanges(); } }