/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Principals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPrincipals(Principal principal) { base.AddObject("Principals", principal); }