/// <summary> /// Deprecated Method for adding a new object to the SupplementFavorites EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSupplementFavorites(SupplementFavorite supplementFavorite) { base.AddObject("SupplementFavorites", supplementFavorite); }
/// <summary> /// Create a new SupplementFavorite object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="name">Initial value of the Name property.</param> public static SupplementFavorite CreateSupplementFavorite(global::System.Int32 id, global::System.Guid userId, global::System.String name) { SupplementFavorite supplementFavorite = new SupplementFavorite(); supplementFavorite.Id = id; supplementFavorite.UserId = userId; supplementFavorite.Name = name; return supplementFavorite; }