Skip to content

Commit b4204da

Browse files
committed
Rename back PostgresqlSqlGeometryDml -> PostgresqlSqlDml
1 parent f8bcda6 commit b4204da

11 files changed

Lines changed: 104 additions & 93 deletions

File tree

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlBoxCompilers.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,49 +18,49 @@ internal class NpgsqlBoxCompilers
1818
[Compiler(typeof(NpgsqlBox), "UpperRight", TargetKind.PropertyGet)]
1919
public static SqlExpression NpgsqlBoxExtractUpperRightPoint(SqlExpression _this)
2020
{
21-
return PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 0);
21+
return PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 0);
2222
}
2323

2424
[Compiler(typeof(NpgsqlBox), "LowerLeft", TargetKind.PropertyGet)]
2525
public static SqlExpression NpgsqlBoxExtractLowerLeftPoint(SqlExpression _this)
2626
{
27-
return PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 1);
27+
return PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 1);
2828
}
2929

3030
[Compiler(typeof(NpgsqlBox), "Right", TargetKind.PropertyGet)]
3131
public static SqlExpression NpgsqlPointExtractRight(SqlExpression _this)
3232
{
33-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractX(PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 0));
33+
return PostgresqlSqlDml.NpgsqlPointExtractX(PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 0));
3434
}
3535

3636
[Compiler(typeof(NpgsqlBox), "Top", TargetKind.PropertyGet)]
3737
public static SqlExpression NpgsqlPointExtractTop(SqlExpression _this)
3838
{
39-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractY(PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 0));
39+
return PostgresqlSqlDml.NpgsqlPointExtractY(PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 0));
4040
}
4141

4242
[Compiler(typeof(NpgsqlBox), "Left", TargetKind.PropertyGet)]
4343
public static SqlExpression NpgsqlPointExtractLeft(SqlExpression _this)
4444
{
45-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractX(PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 1));
45+
return PostgresqlSqlDml.NpgsqlPointExtractX(PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 1));
4646
}
4747

4848
[Compiler(typeof(NpgsqlBox), "Bottom", TargetKind.PropertyGet)]
4949
public static SqlExpression NpgsqlPointExtractBottom(SqlExpression _this)
5050
{
51-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractY(PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 1));
51+
return PostgresqlSqlDml.NpgsqlPointExtractY(PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 1));
5252
}
5353

5454
[Compiler(typeof(NpgsqlBox), "Height", TargetKind.PropertyGet)]
5555
public static SqlExpression NpgsqlPointExtractHeight(SqlExpression _this)
5656
{
57-
return PostgresqlSqlGeometryDml.NpgsqlBoxExtractHeight(_this);
57+
return PostgresqlSqlDml.NpgsqlBoxExtractHeight(_this);
5858
}
5959

6060
[Compiler(typeof(NpgsqlBox), "Width", TargetKind.PropertyGet)]
6161
public static SqlExpression NpgsqlPointExtractWidth(SqlExpression _this)
6262
{
63-
return PostgresqlSqlGeometryDml.NpgsqlBoxExtractWidth(_this);
63+
return PostgresqlSqlDml.NpgsqlBoxExtractWidth(_this);
6464
}
6565

6666
#endregion
@@ -72,7 +72,7 @@ public static SqlExpression NpgsqlBoxOperatorEquality(
7272
[Type(typeof(NpgsqlBox))] SqlExpression left,
7373
[Type(typeof(NpgsqlBox))] SqlExpression right)
7474
{
75-
return PostgresqlSqlGeometryDml.NpgsqlTypeOperatorEquality(left, right);
75+
return PostgresqlSqlDml.NpgsqlTypeOperatorEquality(left, right);
7676
}
7777

7878
[Compiler(typeof(NpgsqlBox), Operator.Inequality, TargetKind.Operator)]
@@ -94,17 +94,17 @@ public static SqlExpression NpgsqlBoxConstructor(
9494
[Type(typeof(float))] SqlExpression bottom,
9595
[Type(typeof(float))] SqlExpression left)
9696
{
97-
return PostgresqlSqlGeometryDml.NpgsqlBoxConstructor(
98-
PostgresqlSqlGeometryDml.NpgsqlPointConstructor(right, top),
99-
PostgresqlSqlGeometryDml.NpgsqlPointConstructor(left, bottom));
97+
return PostgresqlSqlDml.NpgsqlBoxConstructor(
98+
PostgresqlSqlDml.NpgsqlPointConstructor(right, top),
99+
PostgresqlSqlDml.NpgsqlPointConstructor(left, bottom));
100100
}
101101

102102
[Compiler(typeof(NpgsqlBox), null, TargetKind.Constructor)]
103103
public static SqlExpression NpgsqlBoxConstructor(
104104
[Type(typeof(NpgsqlPoint))] SqlExpression upperRight,
105105
[Type(typeof(NpgsqlPoint))] SqlExpression lowerLeft)
106106
{
107-
return PostgresqlSqlGeometryDml.NpgsqlBoxConstructor(upperRight, lowerLeft);
107+
return PostgresqlSqlDml.NpgsqlBoxConstructor(upperRight, lowerLeft);
108108
}
109109

110110
#endregion

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlCircleCompilers.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ internal class NpgsqlCircleCompilers
1818
[Compiler(typeof(NpgsqlCircle), "Center", TargetKind.PropertyGet)]
1919
public static SqlExpression NpgsqlCircleExtractCenterPoint(SqlExpression _this)
2020
{
21-
return PostgresqlSqlGeometryDml.NpgsqlCircleExtractCenter(_this);
21+
return PostgresqlSqlDml.NpgsqlCircleExtractCenter(_this);
2222
}
2323

2424
[Compiler(typeof(NpgsqlCircle), "Radius", TargetKind.PropertyGet)]
2525
public static SqlExpression NpgsqlCircleExtractRadius(SqlExpression _this)
2626
{
27-
return PostgresqlSqlGeometryDml.NpgsqlCircleExtractRadius(_this);
27+
return PostgresqlSqlDml.NpgsqlCircleExtractRadius(_this);
2828
}
2929

3030
#endregion
@@ -36,7 +36,7 @@ public static SqlExpression NpgsqlCircleOperatorEquality(
3636
[Type(typeof(NpgsqlCircle))] SqlExpression left,
3737
[Type(typeof(NpgsqlCircle))] SqlExpression right)
3838
{
39-
return PostgresqlSqlGeometryDml.NpgsqlTypeOperatorEquality(left, right);
39+
return PostgresqlSqlDml.NpgsqlTypeOperatorEquality(left, right);
4040
}
4141

4242
[Compiler(typeof(NpgsqlCircle), Operator.Inequality, TargetKind.Operator)]
@@ -56,7 +56,7 @@ public static SqlExpression NpgsqlCircleConstructor(
5656
[Type(typeof(NpgsqlPoint))] SqlExpression center,
5757
[Type(typeof(double))] SqlExpression radius)
5858
{
59-
return PostgresqlSqlGeometryDml.NpgsqlCircleConstructor(center, radius);
59+
return PostgresqlSqlDml.NpgsqlCircleConstructor(center, radius);
6060
}
6161

6262
#endregion

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlLSegCompilers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ internal static class NpgsqlLSegCompilers
1818
[Compiler(typeof(NpgsqlLSeg), "Start", TargetKind.PropertyGet)]
1919
public static SqlExpression NpgsqlLSegExtractStartPoint(SqlExpression _this)
2020
{
21-
return PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 0);
21+
return PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 0);
2222
}
2323

2424
[Compiler(typeof(NpgsqlLSeg), "End", TargetKind.PropertyGet)]
2525
public static SqlExpression NpgsqlLSegExtractEndPoint(SqlExpression _this)
2626
{
27-
return PostgresqlSqlGeometryDml.NpgsqlTypeExtractPoint(_this, 1);
27+
return PostgresqlSqlDml.NpgsqlTypeExtractPoint(_this, 1);
2828
}
2929

3030
#endregion
@@ -56,7 +56,7 @@ public static SqlExpression NpgsqlLSegConstructor(
5656
[Type(typeof(NpgsqlPoint))] SqlExpression start,
5757
[Type(typeof(NpgsqlPoint))] SqlExpression end)
5858
{
59-
return PostgresqlSqlGeometryDml.NpgsqlLSegConstructor(start, end);
59+
return PostgresqlSqlDml.NpgsqlLSegConstructor(start, end);
6060
}
6161

6262
#endregion

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlPathCompilers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ internal class NpgsqlPathCompilers
1515
[Compiler(typeof(NpgsqlPath), "Count", TargetKind.PropertyGet)]
1616
public static SqlExpression NpgsqlPathCount(SqlExpression _this)
1717
{
18-
return PostgresqlSqlGeometryDml.NpgsqlPathAndPolygonCount(_this);
18+
return PostgresqlSqlDml.NpgsqlPathAndPolygonCount(_this);
1919
}
2020

2121
[Compiler(typeof(NpgsqlPath), "Open", TargetKind.PropertyGet)]
2222
public static SqlExpression NpgsqlPathOpen(SqlExpression _this)
2323
{
24-
return PostgresqlSqlGeometryDml.NpgsqlPathAndPolygonOpen(_this);
24+
return PostgresqlSqlDml.NpgsqlPathAndPolygonOpen(_this);
2525
}
2626

2727
[Compiler(typeof(NpgsqlPath), "Contains", TargetKind.Method)]
2828
public static SqlExpression NpgsqlPathContains(SqlExpression _this,
2929
[Type(typeof(NpgsqlPoint))] SqlExpression point)
3030
{
31-
return PostgresqlSqlGeometryDml.NpgsqlPathAndPolygonContains(_this, point);
31+
return PostgresqlSqlDml.NpgsqlPathAndPolygonContains(_this, point);
3232
}
3333
}
3434
}

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlPointCompilers.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ internal static class NpgsqlPointCompilers
1818
[Compiler(typeof(NpgsqlPoint), "X", TargetKind.PropertyGet)]
1919
public static SqlExpression NpgsqlPointExtractX(SqlExpression _this)
2020
{
21-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractX(_this);
21+
return PostgresqlSqlDml.NpgsqlPointExtractX(_this);
2222
}
2323

2424
[Compiler(typeof(NpgsqlPoint), "Y", TargetKind.PropertyGet)]
2525
public static SqlExpression NpgsqlPointExtractY(SqlExpression _this)
2626
{
27-
return PostgresqlSqlGeometryDml.NpgsqlPointExtractY(_this);
27+
return PostgresqlSqlDml.NpgsqlPointExtractY(_this);
2828
}
2929

3030
#endregion
@@ -36,7 +36,7 @@ public static SqlExpression NpgsqlPointOperatorEquality(
3636
[Type(typeof(NpgsqlPoint))] SqlExpression left,
3737
[Type(typeof(NpgsqlPoint))] SqlExpression right)
3838
{
39-
return PostgresqlSqlGeometryDml.NpgsqlTypeOperatorEquality(left, right);
39+
return PostgresqlSqlDml.NpgsqlTypeOperatorEquality(left, right);
4040
}
4141

4242
[Compiler(typeof(NpgsqlPoint), Operator.Inequality, TargetKind.Operator)]
@@ -56,7 +56,7 @@ public static SqlExpression NpgsqlPointConstructor(
5656
[Type(typeof(float))] SqlExpression x,
5757
[Type(typeof(float))] SqlExpression y)
5858
{
59-
return PostgresqlSqlGeometryDml.NpgsqlPointConstructor(x, y);
59+
return PostgresqlSqlDml.NpgsqlPointConstructor(x, y);
6060
}
6161

6262
#endregion

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/NpgsqlPolygonCompilers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ internal class NpgsqlPolygonCompilers
1616
[Compiler(typeof(NpgsqlPolygon), "Count", TargetKind.PropertyGet)]
1717
public static SqlExpression NpgsqlPolygonCount(SqlExpression _this)
1818
{
19-
return PostgresqlSqlGeometryDml.NpgsqlPathAndPolygonCount(_this);
19+
return PostgresqlSqlDml.NpgsqlPathAndPolygonCount(_this);
2020
}
2121

2222
[Compiler(typeof(NpgsqlPolygon), "Contains", TargetKind.Method)]
2323
public static SqlExpression NpgsqlPolygonContains(SqlExpression _this,
2424
[Type(typeof(NpgsqlPoint))] SqlExpression point)
2525
{
26-
return PostgresqlSqlGeometryDml.NpgsqlPathAndPolygonContains(_this, point);
26+
return PostgresqlSqlDml.NpgsqlPathAndPolygonContains(_this, point);
2727
}
2828

2929
#region Operators
@@ -33,7 +33,7 @@ public static SqlExpression NpgsqlPolygonOperatorEquality(
3333
[Type(typeof(NpgsqlPolygon))] SqlExpression left,
3434
[Type(typeof(NpgsqlPolygon))] SqlExpression right)
3535
{
36-
return PostgresqlSqlGeometryDml.NpgsqlTypeOperatorEquality(left, right);
36+
return PostgresqlSqlDml.NpgsqlTypeOperatorEquality(left, right);
3737
}
3838

3939
[Compiler(typeof(NpgsqlPolygon), Operator.Inequality, TargetKind.Operator)]

Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/PostgresqlSqlGeometricDml.cs renamed to Orm/Xtensive.Orm.PostgreSql/Orm.Providers.PostgreSql/PostgresqlSqlDml.cs

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
namespace Xtensive.Orm.Providers.PostgreSql
1111
{
1212
/// <summary>
13-
/// Contains factory methods for SQL DML operations over Geometry types of the Postgre SQL DBMS.
13+
/// A factory for SQL DML operations for Postgresql DBMS.
14+
/// Similarly to <see cref="Xtensive.Sql.SqlDml"/> it contains
15+
/// factory methods for provider-specific <see cref="SqlExpression"/>s.
1416
/// </summary>
15-
public class PostgresqlSqlGeometryDml
17+
public class PostgresqlSqlDml
1618
{
1719
#region Spatial types
1820

@@ -25,7 +27,7 @@ public static SqlExpression NpgsqlTypeExtractPoint(SqlExpression operand, SqlExp
2527
{
2628
ArgumentValidator.EnsureArgumentNotNull(operand, nameof(operand));
2729
ArgumentValidator.EnsureArgumentNotNull(pointIndex, nameof(pointIndex));
28-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlTypeExtractPoint, operand, pointIndex);
30+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlTypeExtractPoint, operand, pointIndex);
2931
}
3032

3133
/// <summary>
@@ -36,7 +38,7 @@ public static SqlExpression NpgsqlTypeOperatorEquality(SqlExpression left, SqlEx
3638
{
3739
ArgumentValidator.EnsureArgumentNotNull(left, "left");
3840
ArgumentValidator.EnsureArgumentNotNull(right, "right");
39-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlTypeOperatorEquality, left, right);
41+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlTypeOperatorEquality, left, right);
4042
}
4143

4244
#region NpgsqlPoint
@@ -48,7 +50,7 @@ public static SqlExpression NpgsqlPointConstructor(SqlExpression x, SqlExpressio
4850
{
4951
ArgumentValidator.EnsureArgumentNotNull(x, "x");
5052
ArgumentValidator.EnsureArgumentNotNull(y, "y");
51-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPointConstructor, x, y);
53+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPointConstructor, x, y);
5254
}
5355

5456
/// <summary>
@@ -57,7 +59,7 @@ public static SqlExpression NpgsqlPointConstructor(SqlExpression x, SqlExpressio
5759
public static SqlExpression NpgsqlPointExtractX(SqlExpression operand)
5860
{
5961
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
60-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPointExtractX, operand);
62+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPointExtractX, operand);
6163
}
6264

6365
/// <summary>
@@ -66,7 +68,7 @@ public static SqlExpression NpgsqlPointExtractX(SqlExpression operand)
6668
public static SqlExpression NpgsqlPointExtractY(SqlExpression operand)
6769
{
6870
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
69-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPointExtractY, operand);
71+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPointExtractY, operand);
7072
}
7173

7274
#endregion
@@ -82,7 +84,7 @@ public static SqlExpression NpgsqlBoxConstructor(SqlExpression upperRight, SqlEx
8284
{
8385
ArgumentValidator.EnsureArgumentNotNull(upperRight, "upperRight");
8486
ArgumentValidator.EnsureArgumentNotNull(lowerLeft, "lowerLeft");
85-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlBoxConstructor, upperRight, lowerLeft);
87+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlBoxConstructor, upperRight, lowerLeft);
8688
}
8789

8890
/// <summary>
@@ -91,7 +93,7 @@ public static SqlExpression NpgsqlBoxConstructor(SqlExpression upperRight, SqlEx
9193
public static SqlExpression NpgsqlBoxExtractHeight(SqlExpression operand)
9294
{
9395
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
94-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlBoxExtractHeight, operand);
96+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlBoxExtractHeight, operand);
9597
}
9698

9799
/// <summary>
@@ -100,7 +102,7 @@ public static SqlExpression NpgsqlBoxExtractHeight(SqlExpression operand)
100102
public static SqlExpression NpgsqlBoxExtractWidth(SqlExpression operand)
101103
{
102104
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
103-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlBoxExtractWidth, operand);
105+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlBoxExtractWidth, operand);
104106
}
105107

106108
#endregion
@@ -117,7 +119,7 @@ public static SqlExpression NpgsqlCircleConstructor(SqlExpression center, SqlExp
117119
{
118120
ArgumentValidator.EnsureArgumentNotNull(center, "center");
119121
ArgumentValidator.EnsureArgumentNotNull(radius, "radius");
120-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlCircleConstructor, center, radius);
122+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlCircleConstructor, center, radius);
121123
}
122124

123125
/// <summary>
@@ -127,7 +129,7 @@ public static SqlExpression NpgsqlCircleConstructor(SqlExpression center, SqlExp
127129
public static SqlExpression NpgsqlCircleExtractCenter(SqlExpression operand)
128130
{
129131
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
130-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlCircleExtractCenter, operand);
132+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlCircleExtractCenter, operand);
131133
}
132134

133135
/// <summary>
@@ -137,7 +139,7 @@ public static SqlExpression NpgsqlCircleExtractCenter(SqlExpression operand)
137139
public static SqlExpression NpgsqlCircleExtractRadius(SqlExpression operand)
138140
{
139141
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
140-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlCircleExtractRadius, operand);
142+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlCircleExtractRadius, operand);
141143
}
142144

143145
#endregion
@@ -153,7 +155,7 @@ public static SqlExpression NpgsqlLSegConstructor(SqlExpression start, SqlExpres
153155
{
154156
ArgumentValidator.EnsureArgumentNotNull(start, "start");
155157
ArgumentValidator.EnsureArgumentNotNull(end, "end");
156-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlLSegConstructor, start, end);
158+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlLSegConstructor, start, end);
157159
}
158160

159161
#endregion
@@ -167,7 +169,7 @@ public static SqlExpression NpgsqlLSegConstructor(SqlExpression start, SqlExpres
167169
public static SqlExpression NpgsqlPathAndPolygonCount(SqlExpression operand)
168170
{
169171
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
170-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPathAndPolygonCount, operand);
172+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPathAndPolygonCount, operand);
171173
}
172174

173175
/// <summary>
@@ -177,7 +179,7 @@ public static SqlExpression NpgsqlPathAndPolygonCount(SqlExpression operand)
177179
public static SqlExpression NpgsqlPathAndPolygonOpen(SqlExpression operand)
178180
{
179181
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
180-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPathAndPolygonOpen, operand);
182+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPathAndPolygonOpen, operand);
181183
}
182184

183185
/// <summary>
@@ -188,7 +190,7 @@ public static SqlExpression NpgsqlPathAndPolygonContains(SqlExpression operand,
188190
{
189191
ArgumentValidator.EnsureArgumentNotNull(operand, "operand");
190192
ArgumentValidator.EnsureArgumentNotNull(point, "point");
191-
return new SqlCustomFunctionCall(PostgresqlSqlGeometricFunctionType.NpgsqlPathAndPolygonContains, operand, point);
193+
return new SqlCustomFunctionCall(PostgresqlSqlFunctionType.NpgsqlPathAndPolygonContains, operand, point);
192194
}
193195

194196
#endregion

0 commit comments

Comments
 (0)