/// <summary> /// Create a new ConversationOfferSetting object. /// </summary> /// <param name="conversationOfferSettingID">Initial value of the ConversationOfferSettingID property.</param> /// <param name="conversationID">Initial value of the ConversationID property.</param> public static ConversationOfferSetting CreateConversationOfferSetting(global::System.Guid conversationOfferSettingID, global::System.Guid conversationID) { ConversationOfferSetting conversationOfferSetting = new ConversationOfferSetting(); conversationOfferSetting.ConversationOfferSettingID = conversationOfferSettingID; conversationOfferSetting.ConversationID = conversationID; return(conversationOfferSetting); }
public void InsertConversationOfferSetting(ConversationOfferSetting conversationOfferSetting) { if ((conversationOfferSetting.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(conversationOfferSetting, EntityState.Added); } else { this.ObjectContext.ConversationOfferSettings.AddObject(conversationOfferSetting); } }
/// <summary> /// Deprecated Method for adding a new object to the ConversationOfferSettings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToConversationOfferSettings(ConversationOfferSetting conversationOfferSetting) { base.AddObject("ConversationOfferSettings", conversationOfferSetting); }
public void UpdateConversationOfferSetting(ConversationOfferSetting currentConversationOfferSetting) { this.ObjectContext.ConversationOfferSettings.AttachAsModified(currentConversationOfferSetting, this.ChangeSet.GetOriginal(currentConversationOfferSetting)); }