public static void Delete(PlanBalance planBalance) { using (var ctx = new SongSearchContext()) { ctx.Attach(planBalance); ctx.PlanBalances.DeleteObject(planBalance); ctx.SaveChanges(); } }
public static void Delete(PlanBalance planBalance) { using (var ctx = new SongSearchContext()) { ctx.Attach(planBalance); ctx.PlanBalances.DeleteObject(planBalance); ctx.SaveChanges(); } }