kamagra how much to take

AspnetMembership Partial Class

This is the base partial data object class for the “membership” table in the provider database. Using this class implies that there will be a singular relationship between the remaining provider tables and relevant data objects.

  1. //*****************************************************************************
  2. // This file is part of the data access layer example to the ASP.NET 2.0 provider database
  3. // This file was written by Adam Buenz [WSS MVP] of ARB Security Solutions, LLC
  4. //                  http://www.sharepointsecurity.com
  5. //
  6. // This file and its parts is free for re-distribution, for use in both free
  7. // and commercial applications, however this header must remain intact for legal
  8. // use. The data access layer example is distributed in the hope that it will
  9. // be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. //*****************************************************************************
  12. using System;
  13. using System.Collections.Generic;
  14. using System.Data;
  15. using System.Data.SqlClient;
  16. using Aspnet.Provider.Datalayer.Commands;
  17. using Aspnet.Provider.Datalayer.DataTransferObjects;
  18.  
  19. namespace Aspnet.Provider.Datalayer
  20. {
  21.         /// <summary>
  22.         /// The AspnetMembership class.
  23.         /// </summary>
  24.         public partial class AspnetMembership : IPersistable
  25.         {
  26.                 #region Members
  27.  
  28.                 private bool isNew;
  29.                 private bool _isNew;
  30.                 private Guid applicationid;
  31.                 private Guid userid;
  32.                 private string password;
  33.                 private int passwordformat;
  34.                 private string passwordsalt;
  35.                 private string mobilepin;
  36.                 private string email;
  37.                 private string loweredemail;
  38.                 private string passwordquestion;
  39.                 private string passwordanswer;
  40.                 private bool isapproved;
  41.                 private bool islockedout;
  42.                 private DateTime createdate;
  43.                 private DateTime lastlogindate;
  44.                 private DateTime lastpasswordchangeddate;
  45.                 private DateTime lastlockoutdate;
  46.                 private int failedpasswordattemptcount;
  47.                 private DateTime failedpasswordattemptwindowstart;
  48.                 private int failedpasswordanswerattemptcount;
  49.                 private DateTime failedpasswordanswerattemptwindowstart;
  50.                 private string comment;
  51.  
  52.                 #endregion
  53.  
  54.                 #region Properties
  55.  
  56.                 /// <summary>
  57.                 /// The Applicationid.
  58.                 /// </summary>
  59.                 public virtual Guid Applicationid
  60.                 {
  61.                         get { return this.applicationid; }
  62.                         set { this.applicationid = value; }
  63.                 }
  64.  
  65.                 /// <summary>
  66.                 /// The Userid.
  67.                 /// </summary>
  68.                 public virtual Guid Userid
  69.                 {
  70.                         get { return this.userid; }
  71.                         set { this.userid = value; }
  72.                 }
  73.  
  74.                 /// <summary>
  75.                 /// The Password.
  76.                 /// </summary>
  77.                 [StringInfo(128, true)]
  78.                 public virtual string Password
  79.                 {
  80.                         get { return this.password; }
  81.                         set { this.password = value; }
  82.                 }
  83.  
  84.                 /// <summary>
  85.                 /// The Passwordformat.
  86.                 /// </summary>
  87.                 public virtual int Passwordformat
  88.                 {
  89.                         get { return this.passwordformat; }
  90.                         set { this.passwordformat = value; }
  91.                 }
  92.  
  93.                 /// <summary>
  94.                 /// The Passwordsalt.
  95.                 /// </summary>
  96.                 [StringInfo(128, true)]
  97.                 public virtual string Passwordsalt
  98.                 {
  99.                         get { return this.passwordsalt; }
  100.                         set { this.passwordsalt = value; }
  101.                 }
  102.  
  103.                 /// <summary>
  104.                 /// The Mobilepin.
  105.                 /// </summary>
  106.                 [StringInfo(16, false)]
  107.                 public virtual string Mobilepin
  108.                 {
  109.                         get { return this.mobilepin; }
  110.                         set { this.mobilepin = value; }
  111.                 }
  112.  
  113.                 /// <summary>
  114.                 /// The Email.
  115.                 /// </summary>
  116.                 [StringInfo(256, false)]
  117.                 public virtual string Email
  118.                 {
  119.                         get { return this.email; }
  120.                         set { this.email = value; }
  121.                 }
  122.  
  123.                 /// <summary>
  124.                 /// The Loweredemail.
  125.                 /// </summary>
  126.                 [StringInfo(256, false)]
  127.                 public virtual string Loweredemail
  128.                 {
  129.                         get { return this.loweredemail; }
  130.                         set { this.loweredemail = value; }
  131.                 }
  132.  
  133.                 /// <summary>
  134.                 /// The Passwordquestion.
  135.                 /// </summary>
  136.                 [StringInfo(256, false)]
  137.                 public virtual string Passwordquestion
  138.                 {
  139.                         get { return this.passwordquestion; }
  140.                         set { this.passwordquestion = value; }
  141.                 }
  142.  
  143.                 /// <summary>
  144.                 /// The Passwordanswer.
  145.                 /// </summary>
  146.                 [StringInfo(128, false)]
  147.                 public virtual string Passwordanswer
  148.                 {
  149.                         get { return this.passwordanswer; }
  150.                         set { this.passwordanswer = value; }
  151.                 }
  152.  
  153.                 /// <summary>
  154.                 /// The Isapproved.
  155.                 /// </summary>
  156.                 public virtual bool Isapproved
  157.                 {
  158.                         get { return this.isapproved; }
  159.                         set { this.isapproved = value; }
  160.                 }
  161.  
  162.                 /// <summary>
  163.                 /// The Islockedout.
  164.                 /// </summary>
  165.                 public virtual bool Islockedout
  166.                 {
  167.                         get { return this.islockedout; }
  168.                         set { this.islockedout = value; }
  169.                 }
  170.  
  171.                 /// <summary>
  172.                 /// The Createdate.
  173.                 /// </summary>
  174.                 public virtual DateTime Createdate
  175.                 {
  176.                         get { return this.createdate; }
  177.                         set { this.createdate = value; }
  178.                 }
  179.  
  180.                 /// <summary>
  181.                 /// The Lastlogindate.
  182.                 /// </summary>
  183.                 public virtual DateTime Lastlogindate
  184.                 {
  185.                         get { return this.lastlogindate; }
  186.                         set { this.lastlogindate = value; }
  187.                 }
  188.  
  189.                 /// <summary>
  190.                 /// The Lastpasswordchangeddate.
  191.                 /// </summary>
  192.                 public virtual DateTime Lastpasswordchangeddate
  193.                 {
  194.                         get { return this.lastpasswordchangeddate; }
  195.                         set { this.lastpasswordchangeddate = value; }
  196.                 }
  197.  
  198.                 /// <summary>
  199.                 /// The Lastlockoutdate.
  200.                 /// </summary>
  201.                 public virtual DateTime Lastlockoutdate
  202.                 {
  203.                         get { return this.lastlockoutdate; }
  204.                         set { this.lastlockoutdate = value; }
  205.                 }
  206.  
  207.                 /// <summary>
  208.                 /// The Failedpasswordattemptcount.
  209.                 /// </summary>
  210.                 public virtual int Failedpasswordattemptcount
  211.                 {
  212.                         get { return this.failedpasswordattemptcount; }
  213.                         set { this.failedpasswordattemptcount = value; }
  214.                 }
  215.  
  216.                 /// <summary>
  217.                 /// The Failedpasswordattemptwindowstart.
  218.                 /// </summary>
  219.                 public virtual DateTime Failedpasswordattemptwindowstart
  220.                 {
  221.                         get { return this.failedpasswordattemptwindowstart; }
  222.                         set { this.failedpasswordattemptwindowstart = value; }
  223.                 }
  224.  
  225.                 /// <summary>
  226.                 /// The Failedpasswordanswerattemptcount.
  227.                 /// </summary>
  228.                 public virtual int Failedpasswordanswerattemptcount
  229.                 {
  230.                         get { return this.failedpasswordanswerattemptcount; }
  231.                         set { this.failedpasswordanswerattemptcount = value; }
  232.                 }
  233.  
  234.                 /// <summary>
  235.                 /// The Failedpasswordanswerattemptwindowstart.
  236.                 /// </summary>
  237.                 public virtual DateTime Failedpasswordanswerattemptwindowstart
  238.                 {
  239.                         get { return this.failedpasswordanswerattemptwindowstart; }
  240.                         set { this.failedpasswordanswerattemptwindowstart = value; }
  241.                 }
  242.  
  243.                 /// <summary>
  244.                 /// The Comment.
  245.                 /// </summary>
  246.                 public virtual string Comment
  247.                 {
  248.                         get { return this.comment; }
  249.                         set { this.comment = value; }
  250.                 }
  251.  
  252.                 #endregion
  253.  
  254.                 #region ColumnNames
  255.  
  256.                 /// <summary>
  257.                 /// The corresponding schema name.
  258.                 /// </summary>
  259.                 internal const string SchemaName = "dbo";
  260.  
  261.                 /// <summary>
  262.                 /// The corresponding table name.
  263.                 /// </summary>
  264.                 internal const string TableName = "aspnet_Membership";
  265.  
  266.                 /// <summary>
  267.                 /// The column names.
  268.                 /// </summary>
  269.                 internal class ColumnNames
  270.                 {
  271.                         /// <summary>
  272.                         /// The column name of the Applicationid property.
  273.                         /// </summary>
  274.                         public const string Applicationid="ApplicationId";
  275.                         /// <summary>
  276.                         /// The column name of the Userid property.
  277.                         /// </summary>
  278.                         public const string Userid="UserId";
  279.                         /// <summary>
  280.                         /// The column name of the Password property.
  281.                         /// </summary>
  282.                         public const string Password="Password";
  283.                         /// <summary>
  284.                         /// The column name of the Passwordformat property.
  285.                         /// </summary>
  286.                         public const string Passwordformat="PasswordFormat";
  287.                         /// <summary>
  288.                         /// The column name of the Passwordsalt property.
  289.                         /// </summary>
  290.                         public const string Passwordsalt="PasswordSalt";
  291.                         /// <summary>
  292.                         /// The column name of the Mobilepin property.
  293.                         /// </summary>
  294.                         public const string Mobilepin="MobilePIN";
  295.                         /// <summary>
  296.                         /// The column name of the Email property.
  297.                         /// </summary>
  298.                         public const string Email="Email";
  299.                         /// <summary>
  300.                         /// The column name of the Loweredemail property.
  301.                         /// </summary>
  302.                         public const string Loweredemail="LoweredEmail";
  303.                         /// <summary>
  304.                         /// The column name of the Passwordquestion property.
  305.                         /// </summary>
  306.                         public const string Passwordquestion="PasswordQuestion";
  307.                         /// <summary>
  308.                         /// The column name of the Passwordanswer property.
  309.                         /// </summary>
  310.                         public const string Passwordanswer="PasswordAnswer";
  311.                         /// <summary>
  312.                         /// The column name of the Isapproved property.
  313.                         /// </summary>
  314.                         public const string Isapproved="IsApproved";
  315.                         /// <summary>
  316.                         /// The column name of the Islockedout property.
  317.                         /// </summary>
  318.                         public const string Islockedout="IsLockedOut";
  319.                         /// <summary>
  320.                         /// The column name of the Createdate property.
  321.                         /// </summary>
  322.                         public const string Createdate="CreateDate";
  323.                         /// <summary>
  324.                         /// The column name of the Lastlogindate property.
  325.                         /// </summary>
  326.                         public const string Lastlogindate="LastLoginDate";
  327.                         /// <summary>
  328.                         /// The column name of the Lastpasswordchangeddate property.
  329.                         /// </summary>
  330.                         public const string Lastpasswordchangeddate="LastPasswordChangedDate";
  331.                         /// <summary>
  332.                         /// The column name of the Lastlockoutdate property.
  333.                         /// </summary>
  334.                         public const string Lastlockoutdate="LastLockoutDate";
  335.                         /// <summary>
  336.                         /// The column name of the Failedpasswordattemptcount property.
  337.                         /// </summary>
  338.                         public const string Failedpasswordattemptcount="FailedPasswordAttemptCount";
  339.                         /// <summary>
  340.                         /// The column name of the Failedpasswordattemptwindowstart property.
  341.                         /// </summary>
  342.                         public const string Failedpasswordattemptwindowstart="FailedPasswordAttemptWindowStart";
  343.                         /// <summary>
  344.                         /// The column name of the Failedpasswordanswerattemptcount property.
  345.                         /// </summary>
  346.                         public const string Failedpasswordanswerattemptcount="FailedPasswordAnswerAttemptCount";
  347.                         /// <summary>
  348.                         /// The column name of the Failedpasswordanswerattemptwindowstart property.
  349.                         /// </summary>
  350.                         public const string Failedpasswordanswerattemptwindowstart="FailedPasswordAnswerAttemptWindowStart";
  351.                         /// <summary>
  352.                         /// The column name of the Comment property.
  353.                         /// </summary>
  354.                         public const string Comment="Comment";
  355.                 }
  356.  
  357.                 #endregion
  358.  
  359.                 /// <summary>
  360.                 /// The default constructor.
  361.                 /// </summary>
  362.                 public AspnetMembership()
  363.                 {
  364.                         this.isNew = true;
  365.                         PersistenceManager.InvokeInstanceMethod(this, "CreationComplete", null);
  366.                 }
  367.  
  368.                 /// <summary>
  369.                 /// The constructor of the required fields.
  370.                 /// </summary>
  371.                 /// <param name="applicationid">The Applicationid.</param>
  372.                 /// <param name="userid">The Userid.</param>
  373.                 /// <param name="password">The Password.</param>
  374.                 /// <param name="passwordformat">The Passwordformat.</param>
  375.                 /// <param name="passwordsalt">The Passwordsalt.</param>
  376.                 /// <param name="isapproved">The Isapproved.</param>
  377.                 /// <param name="islockedout">The Islockedout.</param>
  378.                 /// <param name="createdate">The Createdate.</param>
  379.                 /// <param name="lastlogindate">The Lastlogindate.</param>
  380.                 /// <param name="lastpasswordchangeddate">The Lastpasswordchangeddate.</param>
  381.                 /// <param name="lastlockoutdate">The Lastlockoutdate.</param>
  382.                 /// <param name="failedpasswordattemptcount">The Failedpasswordattemptcount.</param>
  383.                 /// <param name="failedpasswordattemptwindowstart">The Failedpasswordattemptwindowstart.</param>
  384.                 /// <param name="failedpasswordanswerattemptcount">The Failedpasswordanswerattemptcount.</param>
  385.                 /// <param name="failedpasswordanswerattemptwindowstart">The Failedpasswordanswerattemptwindowstart.</param>
  386.                 public AspnetMembership(Guid applicationid, Guid userid, string password, int passwordformat, string passwordsalt, bool isapproved, bool islockedout, DateTime createdate, DateTime lastlogindate, DateTime lastpasswordchangeddate, DateTime lastlockoutdate, int failedpasswordattemptcount, DateTime failedpasswordattemptwindowstart, int failedpasswordanswerattemptcount, DateTime failedpasswordanswerattemptwindowstart)
  387.                 {
  388.                         this.applicationid = applicationid;
  389.                         this.userid = userid;
  390.                         this.password = password;
  391.                         this.passwordformat = passwordformat;
  392.                         this.passwordsalt = passwordsalt;
  393.                         this.isapproved = isapproved;
  394.                         this.islockedout = islockedout;
  395.                         this.createdate = createdate;
  396.                         this.lastlogindate = lastlogindate;
  397.                         this.lastpasswordchangeddate = lastpasswordchangeddate;
  398.                         this.lastlockoutdate = lastlockoutdate;
  399.                         this.failedpasswordattemptcount = failedpasswordattemptcount;
  400.                         this.failedpasswordattemptwindowstart = failedpasswordattemptwindowstart;
  401.                         this.failedpasswordanswerattemptcount = failedpasswordanswerattemptcount;
  402.                         this.failedpasswordanswerattemptwindowstart = failedpasswordanswerattemptwindowstart;
  403.  
  404.                         this.isNew = true;
  405.                         PersistenceManager.InvokeInstanceMethod(this, "CreationComplete", null);
  406.                 }
  407.  
  408.                 /// <summary>
  409.                 /// The constructor from IDataReader.
  410.                 /// </summary>
  411.                 /// <param name="reader">An initalized IDataReader.</param>
  412.                 internal AspnetMembership(IDataReader reader)
  413.                 {
  414.                         if ((reader["ApplicationId"] != null) && (reader["ApplicationId"] != DBNull.Value))
  415.                         this.applicationid = (Guid)reader["ApplicationId"];
  416.                         if ((reader["UserId"] != null) && (reader["UserId"] != DBNull.Value))
  417.                         this.userid = (Guid)reader["UserId"];
  418.                         if ((reader["Password"] != null) && (reader["Password"] != DBNull.Value))
  419.                         this.password = (string)reader["Password"];
  420.                         if ((reader["PasswordFormat"] != null) && (reader["PasswordFormat"] != DBNull.Value))
  421.                         this.passwordformat = (int)reader["PasswordFormat"];
  422.                         if ((reader["PasswordSalt"] != null) && (reader["PasswordSalt"] != DBNull.Value))
  423.                         this.passwordsalt = (string)reader["PasswordSalt"];
  424.                         if ((reader["MobilePIN"] != null) && (reader["MobilePIN"] != DBNull.Value))
  425.                         this.mobilepin = (string)reader["MobilePIN"];
  426.                         if ((reader["Email"] != null) && (reader["Email"] != DBNull.Value))
  427.                         this.email = (string)reader["Email"];
  428.                         if ((reader["LoweredEmail"] != null) && (reader["LoweredEmail"] != DBNull.Value))
  429.                         this.loweredemail = (string)reader["LoweredEmail"];
  430.                         if ((reader["PasswordQuestion"] != null) && (reader["PasswordQuestion"] != DBNull.Value))
  431.                         this.passwordquestion = (string)reader["PasswordQuestion"];
  432.                         if ((reader["PasswordAnswer"] != null) && (reader["PasswordAnswer"] != DBNull.Value))
  433.                         this.passwordanswer = (string)reader["PasswordAnswer"];
  434.                         if ((reader["IsApproved"] != null) && (reader["IsApproved"] != DBNull.Value))
  435.                         this.isapproved = (bool)reader["IsApproved"];
  436.                         if ((reader["IsLockedOut"] != null) && (reader["IsLockedOut"] != DBNull.Value))
  437.                         this.islockedout = (bool)reader["IsLockedOut"];
  438.                         if ((reader["CreateDate"] != null) && (reader["CreateDate"] != DBNull.Value))
  439.                         this.createdate = (DateTime)reader["CreateDate"];
  440.                         if ((reader["LastLoginDate"] != null) && (reader["LastLoginDate"] != DBNull.Value))
  441.                         this.lastlogindate = (DateTime)reader["LastLoginDate"];
  442.                         if ((reader["LastPasswordChangedDate"] != null) && (reader["LastPasswordChangedDate"] != DBNull.Value))
  443.                         this.lastpasswordchangeddate = (DateTime)reader["LastPasswordChangedDate"];
  444.                         if ((reader["LastLockoutDate"] != null) && (reader["LastLockoutDate"] != DBNull.Value))
  445.                         this.lastlockoutdate = (DateTime)reader["LastLockoutDate"];
  446.                         if ((reader["FailedPasswordAttemptCount"] != null) && (reader["FailedPasswordAttemptCount"] != DBNull.Value))
  447.                         this.failedpasswordattemptcount = (int)reader["FailedPasswordAttemptCount"];
  448.                         if ((reader["FailedPasswordAttemptWindowStart"] != null) && (reader["FailedPasswordAttemptWindowStart"] != DBNull.Value))
  449.                         this.failedpasswordattemptwindowstart = (DateTime)reader["FailedPasswordAttemptWindowStart"];
  450.                         if ((reader["FailedPasswordAnswerAttemptCount"] != null) && (reader["FailedPasswordAnswerAttemptCount"] != DBNull.Value))
  451.                         this.failedpasswordanswerattemptcount = (int)reader["FailedPasswordAnswerAttemptCount"];
  452.                         if ((reader["FailedPasswordAnswerAttemptWindowStart"] != null) && (reader["FailedPasswordAnswerAttemptWindowStart"] != DBNull.Value))
  453.                         this.failedpasswordanswerattemptwindowstart = (DateTime)reader["FailedPasswordAnswerAttemptWindowStart"];
  454.                         if ((reader["Comment"] != null) && (reader["Comment"] != DBNull.Value))
  455.                         this.comment = (string)reader["Comment"];
  456.  
  457.                         this.isNew = false;
  458.                 }
  459.  
  460.                 /// <summary>
  461.                 /// Creates an IDbCommand to insert an object into the database.
  462.                 /// </summary>
  463.                 /// <returns>An initialized IDbCommand object.</returns>
  464.                 internal virtual IDbCommand CreateInsertCommand()
  465.                 {
  466.                         SqlCommand cmd = new SqlCommand();
  467.                         cmd.CommandText = "insert into [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) values (@applicationid, @userid, @password, @passwordformat, @passwordsalt, @mobilepin, @email, @loweredemail, @passwordquestion, @passwordanswer, @isapproved, @islockedout, @createdate, @lastlogindate, @lastpasswordchangeddate, @lastlockoutdate, @failedpasswordattemptcount, @failedpasswordattemptwindowstart, @failedpasswordanswerattemptcount, @failedpasswordanswerattemptwindowstart, @comment)";
  468.                         cmd.Parameters.AddWithValue("@applicationid", this.applicationid);
  469.                         cmd.Parameters.AddWithValue("@userid", this.userid);
  470.                         cmd.Parameters.AddWithValue("@password", this.password);
  471.                         cmd.Parameters.AddWithValue("@passwordformat", this.passwordformat);
  472.                         cmd.Parameters.AddWithValue("@passwordsalt", this.passwordsalt);
  473.                         if (String.IsNullOrEmpty(this.mobilepin))
  474.                         cmd.Parameters.AddWithValue("@mobilepin", DBNull.Value);
  475.                         else
  476.                         cmd.Parameters.AddWithValue("@mobilepin", this.mobilepin);
  477.                         if (String.IsNullOrEmpty(this.email))
  478.                         cmd.Parameters.AddWithValue("@email", DBNull.Value);
  479.                         else
  480.                         cmd.Parameters.AddWithValue("@email", this.email);
  481.                         if (String.IsNullOrEmpty(this.loweredemail))
  482.                         cmd.Parameters.AddWithValue("@loweredemail", DBNull.Value);
  483.                         else
  484.                         cmd.Parameters.AddWithValue("@loweredemail", this.loweredemail);
  485.                         if (String.IsNullOrEmpty(this.passwordquestion))
  486.                         cmd.Parameters.AddWithValue("@passwordquestion", DBNull.Value);
  487.                         else
  488.                         cmd.Parameters.AddWithValue("@passwordquestion", this.passwordquestion);
  489.                         if (String.IsNullOrEmpty(this.passwordanswer))
  490.                         cmd.Parameters.AddWithValue("@passwordanswer", DBNull.Value);
  491.                         else
  492.                         cmd.Parameters.AddWithValue("@passwordanswer", this.passwordanswer);
  493.                         cmd.Parameters.AddWithValue("@isapproved", this.isapproved);
  494.                         cmd.Parameters.AddWithValue("@islockedout", this.islockedout);
  495.                         cmd.Parameters.AddWithValue("@createdate", this.createdate);
  496.                         cmd.Parameters.AddWithValue("@lastlogindate", this.lastlogindate);
  497.                         cmd.Parameters.AddWithValue("@lastpasswordchangeddate", this.lastpasswordchangeddate);
  498.                         cmd.Parameters.AddWithValue("@lastlockoutdate", this.lastlockoutdate);
  499.                         cmd.Parameters.AddWithValue("@failedpasswordattemptcount", this.failedpasswordattemptcount);
  500.                         cmd.Parameters.AddWithValue("@failedpasswordattemptwindowstart", this.failedpasswordattemptwindowstart);
  501.                         cmd.Parameters.AddWithValue("@failedpasswordanswerattemptcount", this.failedpasswordanswerattemptcount);
  502.                         cmd.Parameters.AddWithValue("@failedpasswordanswerattemptwindowstart", this.failedpasswordanswerattemptwindowstart);
  503.                         if (String.IsNullOrEmpty(this.comment))
  504.                         cmd.Parameters.AddWithValue("@comment", DBNull.Value);
  505.                         else
  506.                         cmd.Parameters.AddWithValue("@comment", this.comment);
  507.  
  508.                         cmd.Connection = PersistenceManager.Connection;
  509.                         return cmd;
  510.                 }
  511.  
  512.                 /// <summary>
  513.                 /// Creates an IDbCommand to update an object in the database.
  514.                 /// </summary>
  515.                 /// <returns>An initialized IDbCommand object.</returns>
  516.                 internal virtual IDbCommand CreateUpdateCommand()
  517.                 {
  518.                         SqlCommand cmd = new SqlCommand();
  519.                         cmd.CommandText = "update [dbo].[aspnet_Membership] set [ApplicationId]=@applicationid, [Password]=@password, [PasswordFormat]=@passwordformat, [PasswordSalt]=@passwordsalt, [MobilePIN]=@mobilepin, [Email]=@email, [LoweredEmail]=@loweredemail, [PasswordQuestion]=@passwordquestion, [PasswordAnswer]=@passwordanswer, [IsApproved]=@isapproved, [IsLockedOut]=@islockedout, [CreateDate]=@createdate, [LastLoginDate]=@lastlogindate, [LastPasswordChangedDate]=@lastpasswordchangeddate, [LastLockoutDate]=@lastlockoutdate, [FailedPasswordAttemptCount]=@failedpasswordattemptcount, [FailedPasswordAttemptWindowStart]=@failedpasswordattemptwindowstart, [FailedPasswordAnswerAttemptCount]=@failedpasswordanswerattemptcount, [FailedPasswordAnswerAttemptWindowStart]=@failedpasswordanswerattemptwindowstart, [Comment]=@comment where ([UserId]=@userid)";
  520.                         cmd.Parameters.AddWithValue("@applicationid", this.applicationid);
  521.                         cmd.Parameters.AddWithValue("@password", this.password);
  522.                         cmd.Parameters.AddWithValue("@passwordformat", this.passwordformat);
  523.                         cmd.Parameters.AddWithValue("@passwordsalt", this.passwordsalt);
  524.                         if (String.IsNullOrEmpty(this.mobilepin))
  525.                         cmd.Parameters.AddWithValue("@mobilepin", DBNull.Value);
  526.                         else
  527.                         cmd.Parameters.AddWithValue("@mobilepin", this.mobilepin);
  528.                         if (String.IsNullOrEmpty(this.email))
  529.                         cmd.Parameters.AddWithValue("@email", DBNull.Value);
  530.                         else
  531.                         cmd.Parameters.AddWithValue("@email", this.email);
  532.                         if (String.IsNullOrEmpty(this.loweredemail))
  533.                         cmd.Parameters.AddWithValue("@loweredemail", DBNull.Value);
  534.                         else
  535.                         cmd.Parameters.AddWithValue("@loweredemail", this.loweredemail);
  536.                         if (String.IsNullOrEmpty(this.passwordquestion))
  537.                         cmd.Parameters.AddWithValue("@passwordquestion", DBNull.Value);
  538.                         else
  539.                         cmd.Parameters.AddWithValue("@passwordquestion", this.passwordquestion);
  540.                         if (String.IsNullOrEmpty(this.passwordanswer))
  541.                         cmd.Parameters.AddWithValue("@passwordanswer", DBNull.Value);
  542.                         else
  543.                         cmd.Parameters.AddWithValue("@passwordanswer", this.passwordanswer);
  544.                         cmd.Parameters.AddWithValue("@isapproved", this.isapproved);
  545.                         cmd.Parameters.AddWithValue("@islockedout", this.islockedout);
  546.                         cmd.Parameters.AddWithValue("@createdate", this.createdate);
  547.                         cmd.Parameters.AddWithValue("@lastlogindate", this.lastlogindate);
  548.                         cmd.Parameters.AddWithValue("@lastpasswordchangeddate", this.lastpasswordchangeddate);
  549.                         cmd.Parameters.AddWithValue("@lastlockoutdate", this.lastlockoutdate);
  550.                         cmd.Parameters.AddWithValue("@failedpasswordattemptcount", this.failedpasswordattemptcount);
  551.                         cmd.Parameters.AddWithValue("@failedpasswordattemptwindowstart", this.failedpasswordattemptwindowstart);
  552.                         cmd.Parameters.AddWithValue("@failedpasswordanswerattemptcount", this.failedpasswordanswerattemptcount);
  553.                         cmd.Parameters.AddWithValue("@failedpasswordanswerattemptwindowstart", this.failedpasswordanswerattemptwindowstart);
  554.                         if (String.IsNullOrEmpty(this.comment))
  555.                         cmd.Parameters.AddWithValue("@comment", DBNull.Value);
  556.                         else
  557.                         cmd.Parameters.AddWithValue("@comment", this.comment);
  558.                         cmd.Parameters.AddWithValue("@userid", this.userid);
  559.  
  560.                         cmd.Connection = PersistenceManager.Connection;
  561.                         return cmd;
  562.                 }
  563.  
  564.                 /// <summary>
  565.                 /// Creates an IDbCommand to delete an object in the database.
  566.                 /// </summary>
  567.                 /// <returns>An initialized IDbCommand object.</returns>
  568.                 internal virtual IDbCommand CreateDeleteCommand()
  569.                 {
  570.                         SqlCommand cmd = new SqlCommand();
  571.                         cmd.CommandText = "delete from [dbo].[aspnet_Membership]  where ([UserId]=@userid)";
  572.                         cmd.Parameters.AddWithValue("@userid", this.userid);
  573.  
  574.                         cmd.Connection = PersistenceManager.Connection;
  575.                         return cmd;
  576.                 }
  577.  
  578.                 /// <summary>
  579.                 /// Persists the object.
  580.                 /// </summary>
  581.                 public virtual void Persist()
  582.                 {
  583.                         PersistenceManager.InvokeInstanceMethod(this, "PrePersist", null);
  584.  
  585.                         IDbCommand cmd;
  586.  
  587.                         if (this.isNew)
  588.                         cmd = this.CreateInsertCommand();
  589.                         else
  590.                         cmd = this.CreateUpdateCommand();
  591.  
  592.                         cmd.Transaction = PersistenceManager.Transaction;
  593.                         PersistenceManager.RegisterInTransaction(this);
  594.  
  595.                         bool connWasClosed =
  596.                         PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
  597.                         PersistenceManager.Connection.State.Equals(ConnectionState.Broken);
  598.  
  599.                         try
  600.                         {
  601.                                 if (connWasClosed)
  602.                                 PersistenceManager.Connection.Open();
  603.  
  604.                                 cmd.ExecuteNonQuery();
  605.  
  606.                                 this.isNew = false;
  607.  
  608.                                 if (connWasClosed)
  609.                                 PersistenceManager.Connection.Close();
  610.                         }
  611.                         catch (Exception ex)
  612.                         {
  613.                                 if (connWasClosed)
  614.                                 PersistenceManager.Connection.Close();
  615.                                 throw ex;
  616.                         }
  617.                 }
  618.  
  619.                 /// <summary>
  620.                 /// Deletes the object.
  621.                 /// </summary>
  622.                 public virtual void Delete()
  623.                 {
  624.                         PersistenceManager.InvokeInstanceMethod(this, "PreDelete", null);
  625.  
  626.                         IDbCommand cmd = this.CreateDeleteCommand();
  627.                         cmd.Transaction = PersistenceManager.Transaction;
  628.  
  629.                         bool connWasClosed =
  630.                         PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
  631.                         PersistenceManager.Connection.State.Equals(ConnectionState.Broken);
  632.  
  633.                         try
  634.                         {
  635.                                 if (connWasClosed)
  636.                                 PersistenceManager.Connection.Open();
  637.  
  638.                                 cmd.ExecuteNonQuery();
  639.  
  640.                                 if (connWasClosed)
  641.                                 PersistenceManager.Connection.Close();
  642.                         }
  643.                         catch (Exception ex)
  644.                         {
  645.                                 if (connWasClosed)
  646.                                 PersistenceManager.Connection.Close();
  647.                                 throw ex;
  648.                         }
  649.                 }
  650.  
  651.                 /// <summary>
  652.                 /// Retrieves a AspnetMembership object by its primary key (Throws System.DataException).
  653.                 /// </summary>
  654.                 /// <param name="userid">The Userid.</param>
  655.                 /// <returns>The AspnetMembership object.</returns>
  656.                 public static AspnetMembership Get(Guid userid)
  657.                 {
  658.                         AspnetMembership aspnetmembership;
  659.                         if (AspnetMembership.TryGet(userid, out aspnetmembership))
  660.                         return aspnetmembership;
  661.                         else
  662.                         throw new DataException("'AspnetMembership' object not found.");
  663.                 }
  664.  
  665.                 /// <summary>
  666.                 /// Tries to retrieve a AspnetMembership object by its primary key.
  667.                 /// </summary>
  668.                 /// <param name="userid">The Userid.</param>
  669.                 /// <param name="aspnetmembership">The found AspnetMembership or null if the primary key value does not exist.</param>
  670.                 /// <returns>True if the AspnetMembership exists, else false.</returns>
  671.                 public static bool TryGet(Guid userid, out AspnetMembership aspnetmembership)
  672.                 {
  673.                         SqlCommand cmd = new SqlCommand("select * from [dbo].[aspnet_Membership]  where ([UserId]=@userid)");
  674.                         cmd.Parameters.AddWithValue("@userid", userid);
  675.  
  676.                         IList<AspnetMembership> list = AspnetMembership.Query(cmd);
  677.  
  678.                         if (list.Count == 0)
  679.                         {
  680.                                 aspnetmembership = null;
  681.                                 return false;
  682.                         }
  683.                         else
  684.                         {
  685.                                 aspnetmembership = list[0];
  686.                                 return true;
  687.                         }
  688.                 }
  689.  
  690.                 /// <summary>
  691.                 /// For internal use only.
  692.                 /// </summary>
  693.                 public virtual void SaveState()
  694.                 {
  695.                         this._isNew = this.isNew;
  696.                 }
  697.  
  698.                 /// <summary>
  699.                 /// For internal use only.
  700.                 /// </summary>
  701.                 public virtual void RestoreState()
  702.                 {
  703.                         this.isNew = this._isNew;
  704.                 }
  705.  
  706.                 /// <summary>
  707.                 /// Refreshes the internal state of the object.
  708.                 /// </summary>
  709.                 /// <remarks>This method should be called after xml deserialization to refresh internal flags.</remarks>
  710.                 public virtual void RefreshState()
  711.                 {
  712.                         AspnetMembership aspnetmembership;
  713.  
  714.                         if (AspnetMembership.TryGet(this.userid, out aspnetmembership))
  715.                         {
  716.                                 this.isNew = false;
  717.                         }
  718.                         else
  719.                         {
  720.                                 this.isNew = true;
  721.                         }
  722.                 }
  723.  
  724.                 /// <summary>
  725.                 /// Returns a Data Transfer Object of this AspnetMembership.
  726.                 /// </summary>
  727.                 /// <returns>A Data Transfer Object of this AspnetMembership.</returns>
  728.                 public virtual AspnetMembershipDTO GetDTO()
  729.                 {
  730.                         AspnetMembershipDTO dto = new AspnetMembershipDTO();
  731.  
  732.                         dto.Applicationid = this.Applicationid;
  733.                         dto.Userid = this.Userid;
  734.                         dto.Password = this.Password;
  735.                         dto.Passwordformat = this.Passwordformat;
  736.                         dto.Passwordsalt = this.Passwordsalt;
  737.                         dto.Mobilepin = this.Mobilepin;
  738.                         dto.Email = this.Email;
  739.                         dto.Loweredemail = this.Loweredemail;
  740.                         dto.Passwordquestion = this.Passwordquestion;
  741.                         dto.Passwordanswer = this.Passwordanswer;
  742.                         dto.Isapproved = this.Isapproved;
  743.                         dto.Islockedout = this.Islockedout;
  744.                         dto.Createdate = this.Createdate;
  745.                         dto.Lastlogindate = this.Lastlogindate;
  746.                         dto.Lastpasswordchangeddate = this.Lastpasswordchangeddate;
  747.                         dto.Lastlockoutdate = this.Lastlockoutdate;
  748.                         dto.Failedpasswordattemptcount = this.Failedpasswordattemptcount;
  749.                         dto.Failedpasswordattemptwindowstart = this.Failedpasswordattemptwindowstart;
  750.                         dto.Failedpasswordanswerattemptcount = this.Failedpasswordanswerattemptcount;
  751.                         dto.Failedpasswordanswerattemptwindowstart = this.Failedpasswordanswerattemptwindowstart;
  752.                         dto.Comment = this.Comment;
  753.  
  754.                         return dto;
  755.                 }
  756.  
  757.                 /// <summary>
  758.                 /// Applies a Data Transfer Object data to this AspnetMembership.
  759.                 /// </summary>
  760.                 /// <param name="dto">The Data Transfer Object.</param>
  761.                 public virtual void SetDTO(AspnetMembershipDTO dto)
  762.                 {
  763.                         this.Applicationid = dto.Applicationid;
  764.                         this.Userid = dto.Userid;
  765.                         this.Password = dto.Password;
  766.                         this.Passwordformat = dto.Passwordformat;
  767.                         this.Passwordsalt = dto.Passwordsalt;
  768.                         this.Mobilepin = dto.Mobilepin;
  769.                         this.Email = dto.Email;
  770.                         this.Loweredemail = dto.Loweredemail;
  771.                         this.Passwordquestion = dto.Passwordquestion;
  772.                         this.Passwordanswer = dto.Passwordanswer;
  773.                         this.Isapproved = dto.Isapproved;
  774.                         this.Islockedout = dto.Islockedout;
  775.                         this.Createdate = dto.Createdate;
  776.                         this.Lastlogindate = dto.Lastlogindate;
  777.                         this.Lastpasswordchangeddate = dto.Lastpasswordchangeddate;
  778.                         this.Lastlockoutdate = dto.Lastlockoutdate;
  779.                         this.Failedpasswordattemptcount = dto.Failedpasswordattemptcount;
  780.                         this.Failedpasswordattemptwindowstart = dto.Failedpasswordattemptwindowstart;
  781.                         this.Failedpasswordanswerattemptcount = dto.Failedpasswordanswerattemptcount;
  782.                         this.Failedpasswordanswerattemptwindowstart = dto.Failedpasswordanswerattemptwindowstart;
  783.                         this.Comment = dto.Comment;
  784.                 }
  785.  
  786.                 /// <summary>
  787.                 /// Perfoms a query on AspnetMembership objects.
  788.                 /// </summary>
  789.                 /// <param name="command">An IDbCommand containing the select statement.</param>
  790.                 /// <returns>A result list of AspnetMembership objects.</returns>
  791.                 internal static IList<AspnetMembership> Query(IDbCommand command)
  792.                 {
  793.                         command.Connection = PersistenceManager.Connection;
  794.                         command.Transaction = PersistenceManager.Transaction;
  795.  
  796.                         bool connWasClosed =
  797.                         PersistenceManager.Connection.State.Equals(ConnectionState.Closed) ||
  798.                         PersistenceManager.Connection.State.Equals(ConnectionState.Broken);
  799.  
  800.                         try
  801.                         {
  802.                                 if (connWasClosed)
  803.                                 PersistenceManager.Connection.Open();
  804.  
  805.                                 List<AspnetMembership> list = new List<AspnetMembership>();
  806.                                 IDataReader reader = command.ExecuteReader();
  807.  
  808.                                 using (reader)
  809.                                 {
  810.                                         while (reader.Read())
  811.                                         list.Add(new AspnetMembership(reader));
  812.                                 }
  813.  
  814.                                 if (connWasClosed)
  815.                                 PersistenceManager.Connection.Close();
  816.  
  817.                                 return list;
  818.                         }
  819.                         catch (Exception ex)
  820.                         {
  821.                                 if (connWasClosed)
  822.                                 PersistenceManager.Connection.Close();
  823.                                 throw ex;
  824.                         }
  825.                 }
  826.  
  827.                 /// <summary>
  828.                 /// Finds all AspnetMembership objects with a certain Applicationid value.
  829.                 /// </summary>
  830.                 /// <param name="applicationid">The Applicationid value.</param>
  831.                 /// <returns>All AspnetMembership objects with a certain Applicationid value.</returns>
  832.                 public static IList<AspnetMembership> FindByApplicationid(Guid applicationid)
  833.                 {
  834.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByApplicationid(applicationid));
  835.                 }
  836.  
  837.                 /// <summary>
  838.                 /// Finds all AspnetMembership objects with a certain Password value.
  839.                 /// </summary>
  840.                 /// <param name="password">The Password value ('*' can be used as a wildcard).</param>
  841.                 /// <returns>All AspnetMembership objects with a certain Password value.</returns>
  842.                 public static IList<AspnetMembership> FindByPassword(string password)
  843.                 {
  844.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByPassword(password));
  845.                 }
  846.  
  847.                 /// <summary>
  848.                 /// Finds all AspnetMembership objects with a certain Passwordformat value.
  849.                 /// </summary>
  850.                 /// <param name="passwordformat">The Passwordformat value.</param>
  851.                 /// <returns>All AspnetMembership objects with a certain Passwordformat value.</returns>
  852.                 public static IList<AspnetMembership> FindByPasswordformat(int passwordformat)
  853.                 {
  854.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByPasswordformat(passwordformat));
  855.                 }
  856.  
  857.                 /// <summary>
  858.                 /// Finds all AspnetMembership objects with a certain Passwordsalt value.
  859.                 /// </summary>
  860.                 /// <param name="passwordsalt">The Passwordsalt value ('*' can be used as a wildcard).</param>
  861.                 /// <returns>All AspnetMembership objects with a certain Passwordsalt value.</returns>
  862.                 public static IList<AspnetMembership> FindByPasswordsalt(string passwordsalt)
  863.                 {
  864.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByPasswordsalt(passwordsalt));
  865.                 }
  866.  
  867.                 /// <summary>
  868.                 /// Finds all AspnetMembership objects with a certain Mobilepin value.
  869.                 /// </summary>
  870.                 /// <param name="mobilepin">The Mobilepin value ('*' can be used as a wildcard).</param>
  871.                 /// <returns>All AspnetMembership objects with a certain Mobilepin value.</returns>
  872.                 public static IList<AspnetMembership> FindByMobilepin(string mobilepin)
  873.                 {
  874.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByMobilepin(mobilepin));
  875.                 }
  876.  
  877.                 /// <summary>
  878.                 /// Finds all AspnetMembership objects with a certain Email value.
  879.                 /// </summary>
  880.                 /// <param name="email">The Email value ('*' can be used as a wildcard).</param>
  881.                 /// <returns>All AspnetMembership objects with a certain Email value.</returns>
  882.                 public static IList<AspnetMembership> FindByEmail(string email)
  883.                 {
  884.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByEmail(email));
  885.                 }
  886.  
  887.                 /// <summary>
  888.                 /// Finds all AspnetMembership objects with a certain Loweredemail value.
  889.                 /// </summary>
  890.                 /// <param name="loweredemail">The Loweredemail value ('*' can be used as a wildcard).</param>
  891.                 /// <returns>All AspnetMembership objects with a certain Loweredemail value.</returns>
  892.                 public static IList<AspnetMembership> FindByLoweredemail(string loweredemail)
  893.                 {
  894.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByLoweredemail(loweredemail));
  895.                 }
  896.  
  897.                 /// <summary>
  898.                 /// Finds all AspnetMembership objects with a certain Passwordquestion value.
  899.                 /// </summary>
  900.                 /// <param name="passwordquestion">The Passwordquestion value ('*' can be used as a wildcard).</param>
  901.                 /// <returns>All AspnetMembership objects with a certain Passwordquestion value.</returns>
  902.                 public static IList<AspnetMembership> FindByPasswordquestion(string passwordquestion)
  903.                 {
  904.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByPasswordquestion(passwordquestion));
  905.                 }
  906.  
  907.                 /// <summary>
  908.                 /// Finds all AspnetMembership objects with a certain Passwordanswer value.
  909.                 /// </summary>
  910.                 /// <param name="passwordanswer">The Passwordanswer value ('*' can be used as a wildcard).</param>
  911.                 /// <returns>All AspnetMembership objects with a certain Passwordanswer value.</returns>
  912.                 public static IList<AspnetMembership> FindByPasswordanswer(string passwordanswer)
  913.                 {
  914.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByPasswordanswer(passwordanswer));
  915.                 }
  916.  
  917.                 /// <summary>
  918.                 /// Finds all AspnetMembership objects with a certain Isapproved value.
  919.                 /// </summary>
  920.                 /// <param name="isapproved">The Isapproved value.</param>
  921.                 /// <returns>All AspnetMembership objects with a certain Isapproved value.</returns>
  922.                 public static IList<AspnetMembership> FindByIsapproved(bool isapproved)
  923.                 {
  924.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByIsapproved(isapproved));
  925.                 }
  926.  
  927.                 /// <summary>
  928.                 /// Finds all AspnetMembership objects with a certain Islockedout value.
  929.                 /// </summary>
  930.                 /// <param name="islockedout">The Islockedout value.</param>
  931.                 /// <returns>All AspnetMembership objects with a certain Islockedout value.</returns>
  932.                 public static IList<AspnetMembership> FindByIslockedout(bool islockedout)
  933.                 {
  934.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByIslockedout(islockedout));
  935.                 }
  936.  
  937.                 /// <summary>
  938.                 /// Finds all AspnetMembership objects with a certain Createdate value.
  939.                 /// </summary>
  940.                 /// <param name="createdate">The Createdate value.</param>
  941.                 /// <returns>All AspnetMembership objects with a certain Createdate value.</returns>
  942.                 public static IList<AspnetMembership> FindByCreatedate(DateTime createdate)
  943.                 {
  944.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByCreatedate(createdate));
  945.                 }
  946.  
  947.                 /// <summary>
  948.                 /// Finds all AspnetMembership objects with a certain Lastlogindate value.
  949.                 /// </summary>
  950.                 /// <param name="lastlogindate">The Lastlogindate value.</param>
  951.                 /// <returns>All AspnetMembership objects with a certain Lastlogindate value.</returns>
  952.                 public static IList<AspnetMembership> FindByLastlogindate(DateTime lastlogindate)
  953.                 {
  954.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByLastlogindate(lastlogindate));
  955.                 }
  956.  
  957.                 /// <summary>
  958.                 /// Finds all AspnetMembership objects with a certain Lastpasswordchangeddate value.
  959.                 /// </summary>
  960.                 /// <param name="lastpasswordchangeddate">The Lastpasswordchangeddate value.</param>
  961.                 /// <returns>All AspnetMembership objects with a certain Lastpasswordchangeddate value.</returns>
  962.                 public static IList<AspnetMembership> FindByLastpasswordchangeddate(DateTime lastpasswordchangeddate)
  963.                 {
  964.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByLastpasswordchangeddate(lastpasswordchangeddate));
  965.                 }
  966.  
  967.                 /// <summary>
  968.                 /// Finds all AspnetMembership objects with a certain Lastlockoutdate value.
  969.                 /// </summary>
  970.                 /// <param name="lastlockoutdate">The Lastlockoutdate value.</param>
  971.                 /// <returns>All AspnetMembership objects with a certain Lastlockoutdate value.</returns>
  972.                 public static IList<AspnetMembership> FindByLastlockoutdate(DateTime lastlockoutdate)
  973.                 {
  974.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByLastlockoutdate(lastlockoutdate));
  975.                 }
  976.  
  977.                 /// <summary>
  978.                 /// Finds all AspnetMembership objects with a certain Failedpasswordattemptcount value.
  979.                 /// </summary>
  980.                 /// <param name="failedpasswordattemptcount">The Failedpasswordattemptcount value.</param>
  981.                 /// <returns>All AspnetMembership objects with a certain Failedpasswordattemptcount value.</returns>
  982.                 public static IList<AspnetMembership> FindByFailedpasswordattemptcount(int failedpasswordattemptcount)
  983.                 {
  984.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByFailedpasswordattemptcount(failedpasswordattemptcount));
  985.                 }
  986.  
  987.                 /// <summary>
  988.                 /// Finds all AspnetMembership objects with a certain Failedpasswordattemptwindowstart value.
  989.                 /// </summary>
  990.                 /// <param name="failedpasswordattemptwindowstart">The Failedpasswordattemptwindowstart value.</param>
  991.                 /// <returns>All AspnetMembership objects with a certain Failedpasswordattemptwindowstart value.</returns>
  992.                 public static IList<AspnetMembership> FindByFailedpasswordattemptwindowstart(DateTime failedpasswordattemptwindowstart)
  993.                 {
  994.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByFailedpasswordattemptwindowstart(failedpasswordattemptwindowstart));
  995.                 }
  996.  
  997.                 /// <summary>
  998.                 /// Finds all AspnetMembership objects with a certain Failedpasswordanswerattemptcount value.
  999.                 /// </summary>
  1000.                 /// <param name="failedpasswordanswerattemptcount">The Failedpasswordanswerattemptcount value.</param>
  1001.                 /// <returns>All AspnetMembership objects with a certain Failedpasswordanswerattemptcount value.</returns>
  1002.                 public static IList<AspnetMembership> FindByFailedpasswordanswerattemptcount(int failedpasswordanswerattemptcount)
  1003.                 {
  1004.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByFailedpasswordanswerattemptcount(failedpasswordanswerattemptcount));
  1005.                 }
  1006.  
  1007.                 /// <summary>
  1008.                 /// Finds all AspnetMembership objects with a certain Failedpasswordanswerattemptwindowstart value.
  1009.                 /// </summary>
  1010.                 /// <param name="failedpasswordanswerattemptwindowstart">The Failedpasswordanswerattemptwindowstart value.</param>
  1011.                 /// <returns>All AspnetMembership objects with a certain Failedpasswordanswerattemptwindowstart value.</returns>
  1012.                 public static IList<AspnetMembership> FindByFailedpasswordanswerattemptwindowstart(DateTime failedpasswordanswerattemptwindowstart)
  1013.                 {
  1014.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByFailedpasswordanswerattemptwindowstart(failedpasswordanswerattemptwindowstart));
  1015.                 }
  1016.  
  1017.                 /// <summary>
  1018.                 /// Finds all AspnetMembership objects with a certain Comment value.
  1019.                 /// </summary>
  1020.                 /// <param name="comment">The Comment value ('*' can be used as a wildcard).</param>
  1021.                 /// <returns>All AspnetMembership objects with a certain Comment value.</returns>
  1022.                 public static IList<AspnetMembership> FindByComment(string comment)
  1023.                 {
  1024.                         return AspnetMembership.Query(AspnetMembershipCommands.FindByComment(comment));
  1025.                 }
  1026.  
  1027.         }
  1028. }
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>