/// <summary> /// Deprecated Method for adding a new object to the units EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTounits(unit unit) { base.AddObject("units", unit); }
/// <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; }