Example #1
0
     /// <summary>
     /// Update into XMSaleInfo
     /// </summary>
     /// <param name="xmsaleinfo">XMSaleInfo</param>
     public void UpdateXMSaleInfo(XMSaleInfo xmsaleinfo)
     {
         if (xmsaleinfo == null)
             return;
 
         if (this._context.IsAttached(xmsaleinfo))
             this._context.XMSaleInfoes.Attach(xmsaleinfo);
 
         this._context.SaveChanges();
     }
Example #2
0
     /// <summary>
     /// Insert into XMSaleInfo
     /// </summary>
     /// <param name="xmsaleinfo">XMSaleInfo</param>
 	public void InsertXMSaleInfo(XMSaleInfo xmsaleinfo)
 	{	
         if (xmsaleinfo == null)
             return;
 
         if (!this._context.IsAttached(xmsaleinfo))
 			
             this._context.XMSaleInfoes.AddObject(xmsaleinfo);
 
         this._context.SaveChanges();
 	}