public void DeleteProductSpecMapp(ProductSpecMapp productSpecMapp) { using (var context = new ACContext()) { context.Entry(productSpecMapp).State = System.Data.Entity.EntityState.Deleted; context.SaveChanges(); } }
public void SaveProductSpecMapp(ProductSpecMapp productSpecMapp) { using (var context = new ACContext()) { //productSpecMapp.RowAddDate = System.DateTime.Now; //context.Entry(product.Category).State = System.Data.Entity.EntityState.Unchanged; context.ProductSpecMapps.Add(productSpecMapp); context.SaveChanges(); } }