Skip to content

Commit 1d989ef

Browse files
committed
#478 Remove C# 6 interpolated string so it's C# 5 compatible
1 parent 0dfc440 commit 1d989ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.Core.ttinclude

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4289,15 +4289,15 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
42894289
var isGeography = p.PropertyType == "System.Data.Entity.Spatial.DbGeography";
42904290

42914291
sb.AppendLine(
4292-
$" var {WriteStoredProcSqlParameterName(p)} = new System.Data.SqlClient.SqlParameter"
4293-
+ $" {{ ParameterName = \"{p.Name}\", "
4294-
+ (isGeography ? "UdtTypeName = \"geography\"" : $"SqlDbType = System.Data.SqlDbType.{p.SqlDbType}")
4292+
string.Format(" var {0} = new System.Data.SqlClient.SqlParameter", WriteStoredProcSqlParameterName(p))
4293+
+ string.Format(" {{ ParameterName = \"{0}\", ", p.Name)
4294+
+ (isGeography ? "UdtTypeName = \"geography\"" : string.Format("SqlDbType = System.Data.SqlDbType.{0}", p.SqlDbType))
42954295
+ ", Direction = System.Data.ParameterDirection."
42964296
+ (p.Mode == StoredProcedureParameterMode.In ? "Input" : "Output")
42974297
+ (p.Mode == StoredProcedureParameterMode.In
42984298
? ", Value = " + (isGeography
4299-
? $"Microsoft.SqlServer.Types.SqlGeography.Parse({p.NameHumanCase}.AsText())"
4300-
: p.NameHumanCase + getValueOrDefault)
4299+
? string.Format("Microsoft.SqlServer.Types.SqlGeography.Parse({0}.AsText())", p.NameHumanCase)
4300+
: p.NameHumanCase + getValueOrDefault)
43014301
: string.Empty)
43024302
+ (p.MaxLength != 0 ? ", Size = " + p.MaxLength : string.Empty)
43034303
+ ((p.Precision > 0 || p.Scale > 0) ? ", Precision = " + p.Precision + ", Scale = " + p.Scale : string.Empty)

0 commit comments

Comments
 (0)