/// <summary> /// Deprecated Method for adding a new object to the PersonRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersonRoles(PersonRole personRole) { base.AddObject("PersonRoles", personRole); }
/// <summary> /// Create a new PersonRole object. /// </summary> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="roleID">Initial value of the RoleID property.</param> public static PersonRole CreatePersonRole(global::System.Int32 personID, global::System.Int32 roleID) { PersonRole personRole = new PersonRole(); personRole.PersonID = personID; personRole.RoleID = roleID; return personRole; }