File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Generator/LanguageMapping Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ public class MySqlToCSharp : IDatabaseToPropertyType
77 {
88 public Dictionary < string , string > GetMapping ( )
99 {
10- var geographyType = Settings . TemplateType == TemplateType . Ef6 ? "DbGeography" : "NetTopologySuite.Geometries.Point" ;
11- var geometryType = Settings . TemplateType == TemplateType . Ef6 ? "DbGeometry" : "NetTopologySuite.Geometries.Geometry" ;
10+ var geographyType = Settings . TemplateType == TemplateType . Ef6 || Settings . TemplateType == TemplateType . FileBasedEf6 ? "DbGeography" : "NetTopologySuite.Geometries.Point" ;
11+ var geometryType = Settings . TemplateType == TemplateType . Ef6 || Settings . TemplateType == TemplateType . FileBasedEf6 ? "DbGeometry" : "NetTopologySuite.Geometries.Geometry" ;
1212
1313 // [Database type] = Language type
1414 return new Dictionary < string , string >
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ public class SqlServerToCSharp : IDatabaseToPropertyType
88 // [Database type] = Language type
99 public Dictionary < string , string > GetMapping ( )
1010 {
11- var geographyType = Settings . TemplateType == TemplateType . Ef6 ? "DbGeography" : "NetTopologySuite.Geometries.Point" ;
12- var geometryType = Settings . TemplateType == TemplateType . Ef6 ? "DbGeometry" : "NetTopologySuite.Geometries.Geometry" ;
11+ var geographyType = Settings . TemplateType == TemplateType . Ef6 || Settings . TemplateType == TemplateType . FileBasedEf6 ? "DbGeography" : "NetTopologySuite.Geometries.Point" ;
12+ var geometryType = Settings . TemplateType == TemplateType . Ef6 || Settings . TemplateType == TemplateType . FileBasedEf6 ? "DbGeometry" : "NetTopologySuite.Geometries.Geometry" ;
1313
1414 return new Dictionary < string , string >
1515 {
You can’t perform that action at this time.
0 commit comments