public void AddSite(int QuoteID, int siteDetailID) { var siteDetailRepo = new SiteDetailRepository() { DB = DB }; var siteDetail = siteDetailRepo.Get(siteDetailID); QuoteDetail e = new QuoteDetail(); e.QuoteID = QuoteID; e.SiteID = siteDetail.SiteID; e.Format = siteDetail.Format; e.Type = siteDetail.Type; e.SiteDetailName = siteDetail.Name; DB.QuoteDetails.AddObject(e); Save(); //QuoteDetailRepository quoteDetailRepository = new QuoteDetailRepository(); //QuoteDetailRepository.CopyTimeline(e.ID); }
/// <summary> /// Deprecated Method for adding a new object to the QuoteDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToQuoteDetails(QuoteDetail quoteDetail) { base.AddObject("QuoteDetails", quoteDetail); }
/// <summary> /// Create a new QuoteDetail object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static QuoteDetail CreateQuoteDetail(global::System.Int32 id) { QuoteDetail quoteDetail = new QuoteDetail(); quoteDetail.ID = id; return quoteDetail; }