/// <summary> /// Deprecated Method for adding a new object to the DimPromotions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDimPromotions(DimPromotion dimPromotion) { base.AddObject("DimPromotions", dimPromotion); }
/// <summary> /// Create a new DimPromotion object. /// </summary> /// <param name="promotionKey">Initial value of the PromotionKey property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> public static DimPromotion CreateDimPromotion(global::System.Int32 promotionKey, global::System.DateTime startDate) { DimPromotion dimPromotion = new DimPromotion(); dimPromotion.PromotionKey = promotionKey; dimPromotion.StartDate = startDate; return dimPromotion; }