1
1
using System ;
2
2
using System . Data ;
3
- using System . Text ;
4
3
using ServiceStack . OrmLite . Converters ;
5
4
using ServiceStack . Text ;
6
5
7
6
namespace ServiceStack . OrmLite . PostgreSQL . Converters
8
7
{
9
8
public class PostrgreSqlByteArrayConverter : ByteArrayConverter
10
9
{
11
- public override string ColumnDefinition
12
- {
13
- get { return "BYTEA" ; }
14
- }
10
+ public override string ColumnDefinition => "BYTEA" ;
15
11
16
12
public override string ToQuotedString ( Type fieldType , object value )
17
13
{
@@ -21,15 +17,9 @@ public override string ToQuotedString(Type fieldType, object value)
21
17
22
18
public class PostgreSqlStringArrayConverter : ReferenceTypeConverter
23
19
{
24
- public override string ColumnDefinition
25
- {
26
- get { return "text[]" ; }
27
- }
20
+ public override string ColumnDefinition => "text[]" ;
28
21
29
- public override DbType DbType
30
- {
31
- get { return DbType . Object ; }
32
- }
22
+ public override DbType DbType => DbType . Object ;
33
23
34
24
public override string GetColumnDefinition ( int ? stringLength )
35
25
{
@@ -62,15 +52,9 @@ public override object FromDbValue(Type fieldType, object value)
62
52
63
53
public class PostgreSqlIntArrayConverter : NativeValueOrmLiteConverter
64
54
{
65
- public override string ColumnDefinition
66
- {
67
- get { return "integer[]" ; }
68
- }
55
+ public override string ColumnDefinition => "integer[]" ;
69
56
70
- public override DbType DbType
71
- {
72
- get { return DbType . Object ; }
73
- }
57
+ public override DbType DbType => DbType . Object ;
74
58
75
59
public override string ToQuotedString ( Type fieldType , object value )
76
60
{
@@ -81,15 +65,9 @@ public override string ToQuotedString(Type fieldType, object value)
81
65
82
66
public class PostgreSqlLongArrayConverter : NativeValueOrmLiteConverter
83
67
{
84
- public override string ColumnDefinition
85
- {
86
- get { return "bigint[]" ; }
87
- }
68
+ public override string ColumnDefinition => "bigint[]" ;
88
69
89
- public override DbType DbType
90
- {
91
- get { return DbType . Object ; }
92
- }
70
+ public override DbType DbType => DbType . Object ;
93
71
94
72
public override string ToQuotedString ( Type fieldType , object value )
95
73
{
0 commit comments