/// <summary> /// Create a new Beer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="country">Initial value of the Country property.</param> /// <param name="weight">Initial value of the Weight property.</param> /// <param name="initialWeight">Initial value of the InitialWeight property.</param> public static Beer CreateBeer(global::System.Int64 id, global::System.String name, global::System.String country, global::System.Double weight, global::System.Double initialWeight) { Beer beer = new Beer(); beer.Id = id; beer.Name = name; beer.Country = country; beer.Weight = weight; beer.InitialWeight = initialWeight; return beer; }
/// <summary> /// Deprecated Method for adding a new object to the Beer EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBeer(Beer beer) { base.AddObject("Beer", beer); }