/// <summary> /// 创建新的 aspnet_Membership 对象。 /// </summary> /// <param name="applicationId">ApplicationId 属性的初始值。</param> /// <param name="userId">UserId 属性的初始值。</param> /// <param name="password">Password 属性的初始值。</param> /// <param name="passwordFormat">PasswordFormat 属性的初始值。</param> /// <param name="passwordSalt">PasswordSalt 属性的初始值。</param> /// <param name="isApproved">IsApproved 属性的初始值。</param> /// <param name="isLockedOut">IsLockedOut 属性的初始值。</param> /// <param name="createDate">CreateDate 属性的初始值。</param> /// <param name="lastLoginDate">LastLoginDate 属性的初始值。</param> /// <param name="lastPasswordChangedDate">LastPasswordChangedDate 属性的初始值。</param> /// <param name="lastLockoutDate">LastLockoutDate 属性的初始值。</param> /// <param name="failedPasswordAttemptCount">FailedPasswordAttemptCount 属性的初始值。</param> /// <param name="failedPasswordAttemptWindowStart">FailedPasswordAttemptWindowStart 属性的初始值。</param> /// <param name="failedPasswordAnswerAttemptCount">FailedPasswordAnswerAttemptCount 属性的初始值。</param> /// <param name="failedPasswordAnswerAttemptWindowStart">FailedPasswordAnswerAttemptWindowStart 属性的初始值。</param> public static aspnet_Membership Createaspnet_Membership(global::System.Guid applicationId, global::System.Guid userId, global::System.String password, global::System.Int32 passwordFormat, global::System.String passwordSalt, global::System.Boolean isApproved, global::System.Boolean isLockedOut, global::System.DateTime createDate, global::System.DateTime lastLoginDate, global::System.DateTime lastPasswordChangedDate, global::System.DateTime lastLockoutDate, global::System.Int32 failedPasswordAttemptCount, global::System.DateTime failedPasswordAttemptWindowStart, global::System.Int32 failedPasswordAnswerAttemptCount, global::System.DateTime failedPasswordAnswerAttemptWindowStart) { aspnet_Membership aspnet_Membership = new aspnet_Membership(); aspnet_Membership.ApplicationId = applicationId; aspnet_Membership.UserId = userId; aspnet_Membership.Password = password; aspnet_Membership.PasswordFormat = passwordFormat; aspnet_Membership.PasswordSalt = passwordSalt; aspnet_Membership.IsApproved = isApproved; aspnet_Membership.IsLockedOut = isLockedOut; aspnet_Membership.CreateDate = createDate; aspnet_Membership.LastLoginDate = lastLoginDate; aspnet_Membership.LastPasswordChangedDate = lastPasswordChangedDate; aspnet_Membership.LastLockoutDate = lastLockoutDate; aspnet_Membership.FailedPasswordAttemptCount = failedPasswordAttemptCount; aspnet_Membership.FailedPasswordAttemptWindowStart = failedPasswordAttemptWindowStart; aspnet_Membership.FailedPasswordAnswerAttemptCount = failedPasswordAnswerAttemptCount; aspnet_Membership.FailedPasswordAnswerAttemptWindowStart = failedPasswordAnswerAttemptWindowStart; return aspnet_Membership; }
/// <summary> /// 用于向 aspnet_Membership EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToaspnet_Membership(aspnet_Membership aspnet_Membership) { base.AddObject("aspnet_Membership", aspnet_Membership); }