public void DeleteNegotiationStrategySetting(NegotiationStrategySetting negotiationStrategySetting)
 {
     if ((negotiationStrategySetting.EntityState == EntityState.Detached))
     {
         this.ObjectContext.NegotiationStrategySettings.Attach(negotiationStrategySetting);
     }
     this.ObjectContext.NegotiationStrategySettings.DeleteObject(negotiationStrategySetting);
 }
Exemple #2
0
        /// <summary>
        /// Create a new NegotiationStrategySetting object.
        /// </summary>
        /// <param name="negotiationStrategySettingsID">Initial value of the NegotiationStrategySettingsID property.</param>
        /// <param name="negotiationID">Initial value of the NegotiationID property.</param>
        /// <param name="defaultStartDate">Initial value of the DefaultStartDate property.</param>
        /// <param name="defaultEndDate">Initial value of the DefaultEndDate property.</param>
        /// <param name="strategyTypeID">Initial value of the StrategyTypeID property.</param>
        public static NegotiationStrategySetting CreateNegotiationStrategySetting(global::System.Guid negotiationStrategySettingsID, global::System.Guid negotiationID, global::System.DateTime defaultStartDate, global::System.DateTime defaultEndDate, global::System.Int32 strategyTypeID)
        {
            NegotiationStrategySetting negotiationStrategySetting = new NegotiationStrategySetting();

            negotiationStrategySetting.NegotiationStrategySettingsID = negotiationStrategySettingsID;
            negotiationStrategySetting.NegotiationID    = negotiationID;
            negotiationStrategySetting.DefaultStartDate = defaultStartDate;
            negotiationStrategySetting.DefaultEndDate   = defaultEndDate;
            negotiationStrategySetting.StrategyTypeID   = strategyTypeID;
            return(negotiationStrategySetting);
        }
 public void InsertNegotiationStrategySetting(NegotiationStrategySetting negotiationStrategySetting)
 {
     if ((negotiationStrategySetting.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(negotiationStrategySetting, EntityState.Added);
     }
     else
     {
         this.ObjectContext.NegotiationStrategySettings.AddObject(negotiationStrategySetting);
     }
 }
 public void UpdateNegotiationStrategySetting(NegotiationStrategySetting currentNegotiationStrategySetting)
 {
     this.ObjectContext.NegotiationStrategySettings.AttachAsModified(currentNegotiationStrategySetting, this.ChangeSet.GetOriginal(currentNegotiationStrategySetting));
 }
Exemple #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NegotiationStrategySettings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNegotiationStrategySettings(NegotiationStrategySetting negotiationStrategySetting)
 {
     base.AddObject("NegotiationStrategySettings", negotiationStrategySetting);
 }