public void DeleteConversationStrategySetting(ConversationStrategySetting conversationStrategySetting)
 {
     if ((conversationStrategySetting.EntityState == EntityState.Detached))
     {
         this.ObjectContext.ConversationStrategySettings.Attach(conversationStrategySetting);
     }
     this.ObjectContext.ConversationStrategySettings.DeleteObject(conversationStrategySetting);
 }
Пример #2
0
        /// <summary>
        /// Create a new ConversationStrategySetting object.
        /// </summary>
        /// <param name="conversationStrategySettingsID">Initial value of the ConversationStrategySettingsID property.</param>
        /// <param name="conversationID">Initial value of the ConversationID property.</param>
        /// <param name="startDate">Initial value of the StartDate property.</param>
        /// <param name="endDate">Initial value of the EndDate property.</param>
        /// <param name="strategyTypeID">Initial value of the StrategyTypeID property.</param>
        public static ConversationStrategySetting CreateConversationStrategySetting(global::System.Guid conversationStrategySettingsID, global::System.Guid conversationID, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 strategyTypeID)
        {
            ConversationStrategySetting conversationStrategySetting = new ConversationStrategySetting();

            conversationStrategySetting.ConversationStrategySettingsID = conversationStrategySettingsID;
            conversationStrategySetting.ConversationID = conversationID;
            conversationStrategySetting.StartDate      = startDate;
            conversationStrategySetting.EndDate        = endDate;
            conversationStrategySetting.StrategyTypeID = strategyTypeID;
            return(conversationStrategySetting);
        }
 public void InsertConversationStrategySetting(ConversationStrategySetting conversationStrategySetting)
 {
     if ((conversationStrategySetting.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(conversationStrategySetting, EntityState.Added);
     }
     else
     {
         this.ObjectContext.ConversationStrategySettings.AddObject(conversationStrategySetting);
     }
 }
 public void UpdateConversationStrategySetting(ConversationStrategySetting currentConversationStrategySetting)
 {
     this.ObjectContext.ConversationStrategySettings.AttachAsModified(currentConversationStrategySetting, this.ChangeSet.GetOriginal(currentConversationStrategySetting));
 }
Пример #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ConversationStrategySettings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConversationStrategySettings(ConversationStrategySetting conversationStrategySetting)
 {
     base.AddObject("ConversationStrategySettings", conversationStrategySetting);
 }