This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2590,4 +2590,4 @@ class Manager {
2590
2590
/*
2591
2591
End of Manager.tt
2592
2592
*/
2593
- #>
2593
+ #>
Original file line number Diff line number Diff line change 3
3
// Settings
4
4
ConnectionStringName = ""; // Uses last connection string in config if not specified
5
5
var SPNamespace = "StoredProcedures";
6
- RepoName = "";
7
6
ClassPrefix = "";
8
7
ClassSuffix = "";
9
8
16
15
#>
17
16
<#
18
17
if (string.IsNullOrEmpty(SPNamespace)) SPNamespace=ConnectionStringName;
19
- if (string.IsNullOrEmpty(RepoName) && !string.IsNullOrEmpty(ConnectionStringName)) RepoName=ConnectionStringName + "DB";
20
18
if (string.IsNullOrEmpty(SPNamespace)) Namespace="StoredProcedures";
21
- if (string.IsNullOrEmpty(RepoName)) RepoName="PocoDB";
22
19
#>
23
20
using System;
24
21
using System.Data.Common;
25
22
using System.Data;
26
23
using System.Collections.Generic;
27
24
using ServiceStack.OrmLite;
28
25
29
- namespace <#=StoredProcedures #>
26
+ namespace <#=SPNamespace #>
30
27
{
31
28
public static class SPList
32
29
{
@@ -41,7 +38,7 @@ namespace <#=StoredProcedures #>
41
38
}
42
39
43
40
<#foreach(var sp in sps){#>
44
- public static OrmLiteSPStatement <#=sp.Name #>(this IDbConnection dbConnection <#foreach(var param in sp.Parameters){#> , <#=param.NullableSysType#> <#=Inflector.MakeInitialLowerCase(param.Name)#> = null <#}#>)
41
+ public static OrmLiteSPStatement <#=sp.CleanName #>(this IDbConnection dbConnection <#foreach(var param in sp.Parameters){#> , <#=param.NullableSysType#> <#=Inflector.MakeInitialLowerCase(param.Name)#> = null <#}#>)
45
42
{
46
43
DbCommand dbCommand = (DbCommand)dbConnection.CreateCommand();
47
44
dbCommand.CommandText = "<#=sp.Name#>";
You can’t perform that action at this time.
0 commit comments