mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Pgsql support geometry
This commit is contained in:
@@ -111,7 +111,8 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
if (columnInfo != null && columnInfo.PropertyInfo.GetSetMethod(true) != null)
|
if (columnInfo != null && columnInfo.PropertyInfo.GetSetMethod(true) != null)
|
||||||
{
|
{
|
||||||
if (columnInfo.PropertyInfo.PropertyType.IsClass() && columnInfo.PropertyInfo.PropertyType != UtilConstants.ByteArrayType && columnInfo.PropertyInfo.PropertyType != UtilConstants.ObjType)
|
var isGemo = columnInfo.PropertyInfo?.PropertyType?.FullName=="NetTopologySuite.Geometries.Geometry";
|
||||||
|
if (!isGemo&&columnInfo.PropertyInfo.PropertyType.IsClass() && columnInfo.PropertyInfo.PropertyType != UtilConstants.ByteArrayType && columnInfo.PropertyInfo.PropertyType != UtilConstants.ObjType)
|
||||||
{
|
{
|
||||||
if (this.ReaderKeys.Any(it => it.Equals(fileName, StringComparison.CurrentCultureIgnoreCase)))
|
if (this.ReaderKeys.Any(it => it.Equals(fileName, StringComparison.CurrentCultureIgnoreCase)))
|
||||||
{
|
{
|
||||||
|
@@ -116,6 +116,7 @@ namespace SqlSugar
|
|||||||
new KeyValuePair<string, CSharpDataType>("bit varying",CSharpDataType.byteArray),
|
new KeyValuePair<string, CSharpDataType>("bit varying",CSharpDataType.byteArray),
|
||||||
new KeyValuePair<string, CSharpDataType>("varbit",CSharpDataType.@byte),
|
new KeyValuePair<string, CSharpDataType>("varbit",CSharpDataType.@byte),
|
||||||
new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan),
|
new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan),
|
||||||
|
new KeyValuePair<string, CSharpDataType>("public.geometry",CSharpDataType.@object)
|
||||||
};
|
};
|
||||||
public override List<string> StringThrow
|
public override List<string> StringThrow
|
||||||
{
|
{
|
||||||
|
@@ -111,7 +111,8 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
if (columnInfo != null && columnInfo.PropertyInfo.GetSetMethod(true) != null)
|
if (columnInfo != null && columnInfo.PropertyInfo.GetSetMethod(true) != null)
|
||||||
{
|
{
|
||||||
if (columnInfo.PropertyInfo.PropertyType.IsClass() && columnInfo.PropertyInfo.PropertyType != UtilConstants.ByteArrayType && columnInfo.PropertyInfo.PropertyType != UtilConstants.ObjType)
|
var isGemo = columnInfo.PropertyInfo?.PropertyType?.FullName=="NetTopologySuite.Geometries.Geometry";
|
||||||
|
if (!isGemo&&columnInfo.PropertyInfo.PropertyType.IsClass() && columnInfo.PropertyInfo.PropertyType != UtilConstants.ByteArrayType && columnInfo.PropertyInfo.PropertyType != UtilConstants.ObjType)
|
||||||
{
|
{
|
||||||
if (this.ReaderKeys.Any(it => it.Equals(fileName, StringComparison.CurrentCultureIgnoreCase)))
|
if (this.ReaderKeys.Any(it => it.Equals(fileName, StringComparison.CurrentCultureIgnoreCase)))
|
||||||
{
|
{
|
||||||
|
@@ -116,6 +116,7 @@ namespace SqlSugar
|
|||||||
new KeyValuePair<string, CSharpDataType>("bit varying",CSharpDataType.byteArray),
|
new KeyValuePair<string, CSharpDataType>("bit varying",CSharpDataType.byteArray),
|
||||||
new KeyValuePair<string, CSharpDataType>("varbit",CSharpDataType.@byte),
|
new KeyValuePair<string, CSharpDataType>("varbit",CSharpDataType.@byte),
|
||||||
new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan),
|
new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan),
|
||||||
|
new KeyValuePair<string, CSharpDataType>("public.geometry",CSharpDataType.@object)
|
||||||
};
|
};
|
||||||
public override List<string> StringThrow
|
public override List<string> StringThrow
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user