public void DeleteNegotiationBid(NegotiationBid negotiationBid)
 {
     if ((negotiationBid.EntityState == EntityState.Detached))
     {
         this.ObjectContext.NegotiationBids.Attach(negotiationBid);
     }
     this.ObjectContext.NegotiationBids.DeleteObject(negotiationBid);
 }
Esempio n. 2
0
        /// <summary>
        /// Create a new NegotiationBid object.
        /// </summary>
        /// <param name="negotiationBidID">Initial value of the NegotiationBidID property.</param>
        /// <param name="negotiationID">Initial value of the NegotiationID property.</param>
        /// <param name="bidID">Initial value of the BidID property.</param>
        /// <param name="eNegUserID">Initial value of the eNegUserID property.</param>
        public static NegotiationBid CreateNegotiationBid(global::System.Guid negotiationBidID, global::System.Guid negotiationID, global::System.Guid bidID, global::System.Guid eNegUserID)
        {
            NegotiationBid negotiationBid = new NegotiationBid();

            negotiationBid.NegotiationBidID = negotiationBidID;
            negotiationBid.NegotiationID    = negotiationID;
            negotiationBid.BidID            = bidID;
            negotiationBid.eNegUserID       = eNegUserID;
            return(negotiationBid);
        }
 public void InsertNegotiationBid(NegotiationBid negotiationBid)
 {
     if ((negotiationBid.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(negotiationBid, EntityState.Added);
     }
     else
     {
         this.ObjectContext.NegotiationBids.AddObject(negotiationBid);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NegotiationBids EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNegotiationBids(NegotiationBid negotiationBid)
 {
     base.AddObject("NegotiationBids", negotiationBid);
 }
 public void UpdateNegotiationBid(NegotiationBid currentNegotiationBid)
 {
     this.ObjectContext.NegotiationBids.AttachAsModified(currentNegotiationBid, this.ChangeSet.GetOriginal(currentNegotiationBid));
 }