Skip to content

Commit

Permalink
- 补充 达梦 IDbFirst datetime 处理;
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Nov 24, 2023
1 parent 9a699c0 commit 514c1cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Providers/FreeSql.Provider.Dameng/DamengDbFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ DmDbType GetSqlDbType(DbColumnInfo column)

case "char(36)": return DmDbType.Char;
}
switch (column.DbTypeText?.ToLower())
if (dbfull?.StartsWith("datetime(") == true) return DmDbType.DateTime;
switch (column.DbTypeText?.ToLower())
{
case "bit":
_dicDbToCs.TryAdd(dbfull, _dicDbToCs["number(1)"]);
Expand Down
5 changes: 3 additions & 2 deletions Providers/FreeSql.Provider.Odbc/Dameng/OdbcDamengDbFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ OdbcType GetSqlDbType(DbColumnInfo column)
case "nvarchar2(255)": return OdbcType.NVarChar;

case "char(36)": return OdbcType.Char;
}
switch (column.DbTypeText?.ToLower())
}
if (dbfull?.StartsWith("datetime(") == true) return OdbcType.DateTime;
switch (column.DbTypeText?.ToLower())
{
case "bit":
_dicDbToCs.TryAdd(dbfull, _dicDbToCs["number(1)"]);
Expand Down

0 comments on commit 514c1cd

Please sign in to comment.