Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1b4c76c

Browse files
committed
Refactor PostgreSqlExpression to use DialectProvider
1 parent 4207171 commit 1b4c76c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/ServiceStack.OrmLite.PostgreSQL/PostgreSqlExpression.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@ namespace ServiceStack.OrmLite.PostgreSQL
22
{
33
public class PostgreSqlExpression<T> : SqlExpression<T>
44
{
5-
public override string LimitExpression
6-
{
7-
get
8-
{
9-
if (!Rows.HasValue) return "";
10-
string offset;
11-
if (Offset.HasValue)
12-
{
13-
offset = string.Format(" OFFSET {0}", Offset.Value);
14-
}
15-
else
16-
{
17-
offset = string.Empty;
18-
}
19-
return string.Format("LIMIT {0}{1}", Rows.Value, offset);
20-
}
21-
}
22-
235
public override SqlExpression<T> Clone()
246
{
257
return CopyTo(new PostgreSqlExpression<T>());

0 commit comments

Comments
 (0)