/// <summary>
 /// Create a new Principal object.
 /// </summary>
 /// <param name="principalID">Initial value of the PrincipalID property.</param>
 /// <param name="principalType">Initial value of the PrincipalType property.</param>
 /// <param name="marketID">Initial value of the MarketID property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="loginName">Initial value of the LoginName property.</param>
 /// <param name="passwordDigest">Initial value of the PasswordDigest property.</param>
 /// <param name="salt">Initial value of the Salt property.</param>
 /// <param name="encryptedPassword">Initial value of the EncryptedPassword property.</param>
 /// <param name="failedLoginAttempts">Initial value of the FailedLoginAttempts property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 public static Principal CreatePrincipal(global::System.Int32 principalID, global::System.Int32 principalType, global::System.Int32 marketID, global::System.Int32 status, global::System.String loginName, global::System.String passwordDigest, global::System.String salt, global::System.String encryptedPassword, global::System.Int32 failedLoginAttempts, global::System.DateTime created, global::System.DateTime lastModified, global::System.Byte[] version)
 {
     Principal principal = new Principal();
     principal.PrincipalID = principalID;
     principal.PrincipalType = principalType;
     principal.MarketID = marketID;
     principal.Status = status;
     principal.LoginName = loginName;
     principal.PasswordDigest = passwordDigest;
     principal.Salt = salt;
     principal.EncryptedPassword = encryptedPassword;
     principal.FailedLoginAttempts = failedLoginAttempts;
     principal.Created = created;
     principal.LastModified = lastModified;
     principal.Version = version;
     return principal;
 }
 /// <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);
 }