Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Families EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFamilies(Family family)
 {
     base.AddObject("Families", family);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Family object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="familyId">Initial value of the FamilyId property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="maximunDiscount">Initial value of the MaximunDiscount property.</param>
 /// <param name="minimunProfit">Initial value of the MinimunProfit property.</param>
 public static Family CreateFamily(global::System.Int32 id, global::System.String name, global::System.Int32 familyId, global::System.String code, global::System.Decimal maximunDiscount, global::System.Decimal minimunProfit)
 {
     Family family = new Family();
     family.Id = id;
     family.Name = name;
     family.FamilyId = familyId;
     family.Code = code;
     family.MaximunDiscount = maximunDiscount;
     family.MinimunProfit = minimunProfit;
     return family;
 }