/// <summary> /// Deprecated Method for adding a new object to the PersonTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersonTypes(PersonType personType) { base.AddObject("PersonTypes", personType); }
/// <summary> /// Create a new PersonType object. /// </summary> /// <param name="personType1">Initial value of the PersonType1 property.</param> /// <param name="description">Initial value of the Description property.</param> public static PersonType CreatePersonType(global::System.Int32 personType1, global::System.String description) { PersonType personType = new PersonType(); personType.PersonType1 = personType1; personType.Description = description; return personType; }