/// <summary> /// Create a new AdvertiserInfo object. /// </summary> /// <param name="advertiserID">Initial value of the AdvertiserID property.</param> /// <param name="advertiserGUI">Initial value of the AdvertiserGUI property.</param> public static AdvertiserInfo CreateAdvertiserInfo(global::System.Int32 advertiserID, global::System.Guid advertiserGUI) { AdvertiserInfo advertiserInfo = new AdvertiserInfo(); advertiserInfo.AdvertiserID = advertiserID; advertiserInfo.AdvertiserGUI = advertiserGUI; return advertiserInfo; }
/// <summary> /// Deprecated Method for adding a new object to the AdvertiserInfoes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAdvertiserInfoes(AdvertiserInfo advertiserInfo) { base.AddObject("AdvertiserInfoes", advertiserInfo); }
public static void InsertAdvertiserId(Guid userId) { using (var context = new AdDatabaseEntities()) { var newAdvertiserId = new AdvertiserInfo { AdvertiserID = GetNextAdvertiserID(), AdvertiserGUI = userId }; context.AddToAdvertiserInfoes(newAdvertiserId); } }