示例#1
0
 public static PostgreSQLCopyHelper <TEntity> MapInterval <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, TimeSpan?> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Interval));
 }
示例#2
0
 public static PostgreSQLCopyHelper <TEntity> MapInetAddress <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, IPAddress> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Inet));
 }
示例#3
0
 public static PostgreSQLCopyHelper <TEntity> MapTimeStamp <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, DateTime?> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Timestamp));
 }
 public static PostgreSQLCopyHelper <TEntity> MapMoney <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, Decimal?> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Money));
 }
示例#5
0
 public static PostgreSQLCopyHelper <TEntity> MapUUID <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, Guid?> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Uuid));
 }
示例#6
0
 public static PostgreSQLCopyHelper <TEntity> MapTimeTz <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, OffsetTime> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.TimeTz));
 }
示例#7
0
 public static PostgreSQLCopyHelper <TEntity> MapByteArray <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, byte[]> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Bytea));
 }
示例#8
0
 public static PostgreSQLCopyHelper <TEntity> MapDate <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, NpgsqlDate> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Date));
 }
 public static PostgreSQLCopyHelper <TEntity> MapBoolean <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, bool> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Boolean));
 }
示例#10
0
 public static PostgreSQLCopyHelper <TEntity> MapBigInt <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, Int64?> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Bigint));
 }
示例#11
0
 public static PostgreSQLCopyHelper <TEntity> MapCharacter <TEntity>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, String> propertyGetter)
 {
     return(helper.Map(columnName, propertyGetter, NpgsqlDbType.Char));
 }
示例#12
0
 public static PostgreSQLCopyHelper <TEntity> MapArray <TEntity, TProperty>(this PostgreSQLCopyHelper <TEntity> helper, string columnName, Func <TEntity, TProperty> propertyGetter, NpgsqlDbType type)
 {
     return(helper.Map <TProperty>(columnName, propertyGetter, (NpgsqlDbType.Array | type)));
 }