Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the units EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTounits(unit unit)
 {
     base.AddObject("units", unit);
 }
Пример #2
0
 /// <summary>
 /// Create a new unit object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="modifiedOn">Initial value of the ModifiedOn property.</param>
 public static unit Createunit(global::System.Int32 id, global::System.String name, global::System.DateTime modifiedOn)
 {
     unit unit = new unit();
     unit.id = id;
     unit.name = name;
     unit.ModifiedOn = modifiedOn;
     return unit;
 }