예제 #1
0
 /// <summary>
 /// Create a new Principal object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="principalName">Initial value of the PrincipalName property.</param>
 /// <param name="emailAddress">Initial value of the EmailAddress property.</param>
 public static Principal CreatePrincipal(global::System.Int32 id, global::System.String principalName, global::System.String emailAddress)
 {
     Principal principal = new Principal();
     principal.Id = id;
     principal.PrincipalName = principalName;
     principal.EmailAddress = emailAddress;
     return principal;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Principals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrincipals(Principal principal)
 {
     base.AddObject("Principals", principal);
 }
예제 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Principals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrincipals(Principal principal)
 {
     base.AddObject("Principals", principal);
 }