Пример #1
0
 protected virtual SqlStatement CreateSqlStatement(MembershipProviderSqlStatement command)
 {
     SqlText sql = new SqlText(Statements[command], ConnectionStringSettings.Name);
     sql.Command.CommandText = sql.Command.CommandText.Replace("@", sql.ParameterMarker);
     if (sql.Command.CommandText.Contains((sql.ParameterMarker + "ApplicationName")))
         sql.AssignParameter("ApplicationName", ApplicationName);
     sql.Name = ("MyCompany Application Membership Provider - " + command.ToString());
     sql.WriteExceptionsToEventLog = WriteExceptionsToEventLog;
     return sql;
 }