Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 public void InsertConversationOfferSetting(ConversationOfferSetting conversationOfferSetting)
 {
     if ((conversationOfferSetting.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(conversationOfferSetting, EntityState.Added);
     }
     else
     {
         this.ObjectContext.ConversationOfferSettings.AddObject(conversationOfferSetting);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ConversationOfferSettings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConversationOfferSettings(ConversationOfferSetting conversationOfferSetting)
 {
     base.AddObject("ConversationOfferSettings", conversationOfferSetting);
 }
Esempio n. 4
0
 public void UpdateConversationOfferSetting(ConversationOfferSetting currentConversationOfferSetting)
 {
     this.ObjectContext.ConversationOfferSettings.AttachAsModified(currentConversationOfferSetting, this.ChangeSet.GetOriginal(currentConversationOfferSetting));
 }