protected virtual SqlStatement CreateSqlStatement(RoleProviderSqlStatement command) { var 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 = ("Finsoft Application Role Provider - " + command.ToString()); sql.WriteExceptionsToEventLog = WriteExceptionsToEventLog; return(sql); }
protected virtual SqlStatement CreateSqlStatement(RoleProviderSqlStatement 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 Role Provider - " + command.ToString()); sql.WriteExceptionsToEventLog = WriteExceptionsToEventLog; return sql; }