/// <summary> /// Deletes an ClientMeta object to the DbSet of ClientMetas /// </summary> /// <typeparam name="ClientMeta">The ClientMeta to be deleted.</param> protected virtual void _Delete(ClientMeta obj) { DB.Entry<ClientMeta>(obj).State = EntityState.Deleted; DB.SaveChanges(); }
/// <summary> /// Updates an ClientMeta object to the DbSet of ClientMetas /// </summary> /// <typeparam name="ClientMeta">The ClientMeta to be updated.</param> protected virtual void _Update(ClientMeta obj) { DB.Entry<ClientMeta>(obj).State = EntityState.Modified; DB.SaveChanges(); }
/// <summary> /// Adds an ClientMeta object to the DbSet of ClientMetas /// </summary> /// <typeparam name="ClientMeta">The ClientMeta to be added.</param> protected virtual void _Add(ClientMeta obj) { DB.ClientMetas.Add(obj); DB.SaveChanges(); }