Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonRoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonRoles(PersonRole personRole)
 {
     base.AddObject("PersonRoles", personRole);
 }
Esempio n. 2
0
 /// <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;
 }