/// <summary> /// Deprecated Method for adding a new object to the Owners EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOwners(Owner owner) { base.AddObject("Owners", owner); }
/// <summary> /// Create a new Owner object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="docNumber">Initial value of the DocNumber property.</param> /// <param name="phone">Initial value of the Phone property.</param> public static Owner CreateOwner(global::System.Int32 id, global::System.String name, global::System.String docNumber, global::System.String phone) { Owner owner = new Owner(); owner.Id = id; owner.Name = name; owner.DocNumber = docNumber; owner.Phone = phone; return owner; }