public void DeleteNegotiationCulture(NegotiationCulture negotiationCulture) { if ((negotiationCulture.EntityState == EntityState.Detached)) { this.ObjectContext.NegotiationCultures.Attach(negotiationCulture); } this.ObjectContext.NegotiationCultures.DeleteObject(negotiationCulture); }
/// <summary> /// Create a new NegotiationCulture object. /// </summary> /// <param name="negotiationCultureID">Initial value of the NegotiationCultureID property.</param> /// <param name="negotiationCultureType">Initial value of the NegotiationCultureType property.</param> public static NegotiationCulture CreateNegotiationCulture(global::System.Guid negotiationCultureID, global::System.Byte negotiationCultureType) { NegotiationCulture negotiationCulture = new NegotiationCulture(); negotiationCulture.NegotiationCultureID = negotiationCultureID; negotiationCulture.NegotiationCultureType = negotiationCultureType; return(negotiationCulture); }
public void InsertNegotiationCulture(NegotiationCulture negotiationCulture) { if ((negotiationCulture.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(negotiationCulture, EntityState.Added); } else { this.ObjectContext.NegotiationCultures.AddObject(negotiationCulture); } }
public void UpdateNegotiationCulture(NegotiationCulture currentNegotiationCulture) { this.ObjectContext.NegotiationCultures.AttachAsModified(currentNegotiationCulture, this.ChangeSet.GetOriginal(currentNegotiationCulture)); }
/// <summary> /// Deprecated Method for adding a new object to the NegotiationCultures EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNegotiationCultures(NegotiationCulture negotiationCulture) { base.AddObject("NegotiationCultures", negotiationCulture); }