namespace ModelLayer public class NorthwindDataContext : ObjectContext private ObjectSet<Category> _categories; public NorthwindDataContextCategory>();
_products = CreateObjectSet&l
using (var context = new JasminEntities()) var expType = (from o in context.tblExpTypes where o.Id == lvExpType.FocusedItem.Text select o).Single(); context.SaveChanges();我有上面的代码,我只需要传递context.tblExpTypes作为参数,因为在我的项目中有许多表单需要删除任务,我如何
public class EntityFetcher<T> where T : BaseType public object GetById(int id) ObjectSet<T> objectSet = (ObjectSet<T>)GetTheObjectSet(typeof(T));
}如果T为Ba