|
86 | 86 | private string _providerName = ""; |
87 | 87 | private string _configFilePath = ""; |
88 | 88 | Func<string, string, string> TableRename; |
89 | | - Func<string, string, string> StoredProcedureRename; |
| 89 | + Func<StoredProcedure, string> StoredProcedureRename; |
90 | 90 | static Func<string, StoredProcedure, string> StoredProcedureReturnModelRename; |
91 | 91 | Func<Column, Table, Column> UpdateColumn; |
92 | 92 | Func<ForeignKey, ForeignKey> ForeignKeyFilter; |
|
1483 | 1483 |
|
1484 | 1484 | public GeneratedTextTransformation Outer; |
1485 | 1485 | public abstract Tables ReadSchema(Regex schemaFilterExclude, Regex schemaFilterInclude, Regex tableFilterExclude, Regex tableFilterInclude, Regex columnFilterExclude, Func<Table, bool> tableFilter, bool usePascalCase, bool prependSchemaName, CommentsStyle includeComments, bool includeViews, CommentsStyle includeExtendedPropertyComments, Func<string, string, string> tableRename, Func<Column, Table, Column> updateColumn, bool usePrivateSetterForComputedColumns, bool includeSynonyms, bool dataAnnotations, bool dataAnnotationsSchema, bool isSqlCe); |
1486 | | - public abstract List<StoredProcedure> ReadStoredProcs(Regex SchemaFilterExclude, Regex storedProcedureFilterExclude, bool usePascalCase, bool prependSchemaName , Func<string, string, string> StoredProcedureRename, bool includeTableValuedFunctions); |
| 1486 | + public abstract List<StoredProcedure> ReadStoredProcs(Regex SchemaFilterExclude, Regex storedProcedureFilterExclude, bool usePascalCase, bool prependSchemaName , Func<StoredProcedure, string> StoredProcedureRename, bool includeTableValuedFunctions); |
1487 | 1487 | public abstract List<ForeignKey> ReadForeignKeys(Func<string, string, string> tableRename, Func<ForeignKey, ForeignKey> foreignKeyFilter); |
1488 | 1488 | public abstract void ProcessForeignKeys(List<ForeignKey> fkList, Tables tables, bool usePascalCase, bool prependSchemaName, string collectionType, bool checkForFkNameClashes, CommentsStyle includeComments, Func<string, ForeignKey, string, short, string> ForeignKeyName, bool dataAnnotationsSchema); |
1489 | 1489 | public abstract void IdentifyForeignKeys(List<ForeignKey> fkList, Tables tables); |
@@ -2398,7 +2398,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition, |
2398 | 2398 | } |
2399 | 2399 | } |
2400 | 2400 |
|
2401 | | - public override List<StoredProcedure> ReadStoredProcs(Regex schemaFilterExclude, Regex storedProcedureFilterExclude, bool usePascalCase, bool prependSchemaName , Func<string, string, string> StoredProcedureRename, bool includeTableValuedFunctions) |
| 2401 | + public override List<StoredProcedure> ReadStoredProcs(Regex schemaFilterExclude, Regex storedProcedureFilterExclude, bool usePascalCase, bool prependSchemaName , Func<StoredProcedure, string> StoredProcedureRename, bool includeTableValuedFunctions) |
2402 | 2402 | { |
2403 | 2403 | var result = new List<StoredProcedure>(); |
2404 | 2404 | if(Cmd == null) |
@@ -2447,7 +2447,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition, |
2447 | 2447 | if((string.Compare(schema, "dbo", StringComparison.OrdinalIgnoreCase) != 0) && prependSchemaName) |
2448 | 2448 | sp.NameHumanCase = schema + "_" + sp.NameHumanCase; |
2449 | 2449 |
|
2450 | | - sp.NameHumanCase = StoredProcedureRename(sp.NameHumanCase, schema); |
| 2450 | + sp.NameHumanCase = StoredProcedureRename(sp); |
2451 | 2451 | if(storedProcedureFilterExclude != null && (storedProcedureFilterExclude.IsMatch(sp.NameHumanCase) || storedProcedureFilterExclude.IsMatch(schema + "." + sp.NameHumanCase))) |
2452 | 2452 | continue; |
2453 | 2453 |
|
|
0 commit comments