/// <summary> /// Deprecated Method for adding a new object to the Persons EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersons(Person person) { base.AddObject("Persons", person); }
/// <summary> /// Create a new Person object. /// </summary> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="group_id">Initial value of the group_id property.</param> /// <param name="status">Initial value of the Status property.</param> public static Person CreatePerson(global::System.Int32 personID, global::System.String firstName, global::System.String lastName, global::System.String address, global::System.String city, global::System.Int32 group_id, global::System.Boolean status) { Person person = new Person(); person.PersonID = personID; person.FirstName = firstName; person.LastName = lastName; person.Address = address; person.City = city; person.group_id = group_id; person.Status = status; return person; }