@@ -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