示例#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);
        }
示例#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);
     }
 }
示例#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);
 }
示例#4
0
 public void UpdateConversationOfferSetting(ConversationOfferSetting currentConversationOfferSetting)
 {
     this.ObjectContext.ConversationOfferSettings.AttachAsModified(currentConversationOfferSetting, this.ChangeSet.GetOriginal(currentConversationOfferSetting));
 }