mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 21:56:03 +08:00
调整DB2数据类型适配
This commit is contained in:
parent
d9e847b7c7
commit
a9b8d20b42
@ -27,7 +27,7 @@ public class DbHelper
|
|||||||
/// Database connection string
|
/// Database connection string
|
||||||
/// 数据库连接字符串
|
/// 数据库连接字符串
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly static string Connection = "server=127.0.0.1:50000;database=Test;uid=db2inst1;pwd=123456;";
|
public readonly static string Connection = "server=127.0.0.1:50000;database=Test;uid=db2inst1;pwd=123456;currentSchema=db2inst1;";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a new SqlSugarClient instance with specific configurations
|
/// Get a new SqlSugarClient instance with specific configurations
|
||||||
|
@ -215,9 +215,11 @@ namespace SqlSugar.DB2
|
|||||||
{ typeof(char[]),DB2Type.Clob},
|
{ typeof(char[]),DB2Type.Clob},
|
||||||
{ typeof(byte[]),DB2Type.Byte},
|
{ typeof(byte[]),DB2Type.Byte},
|
||||||
{ typeof(bool[]),DB2Type.Boolean},
|
{ typeof(bool[]),DB2Type.Boolean},
|
||||||
{typeof(DateTime[]),DB2Type.Date},
|
{ typeof(DateTime[]),DB2Type.Timestamp},
|
||||||
{typeof(float[]),DB2Type.Real},
|
{ typeof(DateTime[]),DB2Type.Date},
|
||||||
{typeof(Guid[]),DB2Type.VarChar},
|
{ typeof(float[]),DB2Type.Real},
|
||||||
|
{ typeof(string[]),DB2Type.VarChar},
|
||||||
|
{ typeof(Guid[]),DB2Type.VarChar},
|
||||||
|
|
||||||
|
|
||||||
{ typeof(int?[]),DB2Type.Integer},
|
{ typeof(int?[]),DB2Type.Integer},
|
||||||
@ -227,12 +229,13 @@ namespace SqlSugar.DB2
|
|||||||
{ typeof(char?[]),DB2Type.Text},
|
{ typeof(char?[]),DB2Type.Text},
|
||||||
{ typeof(byte?[]),DB2Type.Byte},
|
{ typeof(byte?[]),DB2Type.Byte},
|
||||||
{ typeof(bool?[]),DB2Type.Boolean},
|
{ typeof(bool?[]),DB2Type.Boolean},
|
||||||
{typeof(DateTime?[]),DB2Type.Date},
|
{ typeof(DateTime?[]),DB2Type.Timestamp},
|
||||||
{typeof(Guid?[]),DB2Type.VarChar},
|
{ typeof(DateTime?[]),DB2Type.Date},
|
||||||
|
{ typeof(Guid?[]),DB2Type.VarChar},
|
||||||
|
|
||||||
|
|
||||||
{ typeof(string[]), DB2Type.Text},
|
{ typeof(string[]), DB2Type.VarChar},
|
||||||
{typeof(float?[]),DB2Type.Real},
|
{ typeof(float?[]),DB2Type.Real},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user