/// <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); }
private bool FilterPerson(Person entity) { return (entity.PersonId == this.OwnerPersonId); }
/// <summary> /// Create a new Person object. /// </summary> /// <param name="personId">Initial value of the PersonId property.</param> public static Person CreatePerson(global::System.Int32 personId) { Person person = new Person(); person.PersonId = personId; return person; }