public void Remove(CustodyCat cat) { if (Context.Entry(cat).State == EntityState.Detached) { context.CustodyCategory.Attach(cat); } context.CustodyCategory.Remove(cat); }
public DbEntityEntry <CustodyCat> Entry(CustodyCat cat) { return(Context.Entry(cat)); }
public void Attach(CustodyCat cat) { context.CustodyCategory.Attach(cat); }
public void Add(CustodyCat cat) { context.CustodyCategory.Add(cat); }