Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ae6954b

Browse files
committed
Merge branch 'master' of github.com:ServiceStack/ServiceStack.OrmLite
2 parents 8b84fbc + 3f72f45 commit ae6954b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/T4/OrmLite.Core.ttinclude

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,12 +2653,12 @@ class Manager {
26532653
CurrentBlock = new Block { Name = name };
26542654
}
26552655

2656-
public void StartFooter(bool includeInDefault = true) {
2656+
public void StartFooter(bool includeInDefault) {
26572657
CurrentBlock = footer;
26582658
footer.IncludeInDefault = includeInDefault;
26592659
}
26602660

2661-
public void StartHeader(bool includeInDefault = true) {
2661+
public void StartHeader(bool includeInDefault) {
26622662
CurrentBlock = header;
26632663
header.IncludeInDefault = includeInDefault;
26642664
}
@@ -2672,7 +2672,7 @@ class Manager {
26722672
currentBlock = null;
26732673
}
26742674

2675-
public virtual void Process(bool split, bool sync = true) {
2675+
public virtual void Process(bool split, bool sync) {
26762676
if (split) {
26772677
EndBlock();
26782678
String headerText = template.ToString(header.Start, header.Length);
@@ -2801,4 +2801,4 @@ class Manager {
28012801
/*
28022802
End of Manager.tt
28032803
*/
2804-
#>
2804+
#>

src/T4/OrmLite.Poco.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if (string.IsNullOrEmpty(Namespace)) Namespace=ConnectionStringName;
3636
if (string.IsNullOrEmpty(Namespace)) Namespace="OrmLitePoco";
3737
var manager = Manager.Create(Host, GenerationEnvironment);
38-
manager.StartHeader();
38+
manager.StartHeader(true);
3939
#>
4040
// <auto-generated />
4141
// This file was generated by a T4 template.
@@ -150,9 +150,9 @@ else if (!isArray && !isBool) { if (!isGuid) {#>
150150
<#}#>
151151
<# manager.EndBlock(); #>
152152
<# } #>
153-
<#manager.StartFooter(); #>
153+
<#manager.StartFooter(true); #>
154154
}
155155
#pragma warning restore 1591
156156
<#manager.EndBlock(); #>
157-
<#manager.Process(SplitIntoMultipleFiles); #>
157+
<#manager.Process(SplitIntoMultipleFiles, true); #>
158158
<# } #>

src/T4/OrmLite.SP.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ namespace <#=SPNamespace#>
5959
if (!sp.SPOutputColumns.Any()) continue; #>
6060
public class <#=sp.CleanName#>_Result
6161
{
62-
<# foreach(var prop in sp.SPOutputColumns) { var alias = false; var propName = prop.Name; if (propName.Contains(' ') || propName.Contains('$') || propName.Contains('+') || propName.Contains('%')) { propName = propName.Replace(' ','_').Replace("$","_Dollar").Replace("+","_Plus").Replace("%","_Percent"); alias = true; }; if (char.IsDigit(propName[0])) { propName = "_" + propName; alias = true; };
62+
<# foreach(var prop in sp.SPOutputColumns) { var _alias = false; var propName = prop.Name; if (propName.Contains(' ') || propName.Contains('$') || propName.Contains('+') || propName.Contains('%')) { propName = propName.Replace(' ','_').Replace("$","_Dollar").Replace("+","_Plus").Replace("%","_Percent"); _alias = true; }; if (char.IsDigit(propName[0])) { propName = "_" + propName; _alias = true; };
6363

64-
if (alias) {#> [Alias("<#=prop.Name#>")]
64+
if (_alias) {#> [Alias("<#=prop.Name#>")]
6565
<#}#>
6666
public <#=prop.DotNetType#> <#=propName#> { get; set; }
6767
<#}
@@ -70,4 +70,4 @@ namespace <#=SPNamespace#>
7070
<#}#>
7171

7272
}
73-
<#}#>
73+
<#}#>

0 commit comments

Comments
 (0)