/// <summary> /// Deprecated Method for adding a new object to the DeliveryEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDeliveryEntities(DeliveryEntity deliveryEntity) { base.AddObject("DeliveryEntities", deliveryEntity); }
/// <summary> /// Create a new DeliveryEntity object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="cost">Initial value of the Cost property.</param> /// <param name="price">Initial value of the Price property.</param> public static DeliveryEntity CreateDeliveryEntity(global::System.Int32 id, global::System.String name, global::System.Decimal cost, global::System.Decimal price) { DeliveryEntity deliveryEntity = new DeliveryEntity(); deliveryEntity.Id = id; deliveryEntity.Name = name; deliveryEntity.Cost = cost; deliveryEntity.Price = price; return deliveryEntity; }