You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Providers/FreeSql.Provider.Odbc/Oracle/OdbcOracleCodeFirst.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ public OdbcOracleCodeFirst(IFreeSql orm, CommonUtils commonUtils, CommonExpressi
38
38
{typeof(float).FullName,(OdbcType.Real,"float","float(63) NOT NULL",false,false,0)},{typeof(float?).FullName,(OdbcType.Real,"float","float(63) NULL",false,true,null)},
39
39
{typeof(decimal).FullName,(OdbcType.Decimal,"number","number(10,2) NOT NULL",false,false,0)},{typeof(decimal?).FullName,(OdbcType.Decimal,"number","number(10,2) NULL",false,true,null)},
40
40
41
+
//oracle odbc driver 不支持 TimeSpan 类型的读取
41
42
//{ typeof(TimeSpan).FullName, (OdbcType.Time, "interval day to second","interval day(2) to second(6) NOT NULL", false, false, 0) },{ typeof(TimeSpan?).FullName, (OdbcType.Time, "interval day to second", "interval day(2) to second(6) NULL",false, true, null) },
42
43
{typeof(DateTime).FullName,(OdbcType.DateTime,"timestamp","timestamp(6) NOT NULL",false,false,newDateTime(1970,1,1))},{typeof(DateTime?).FullName,(OdbcType.DateTime,"timestamp","timestamp(6) NULL",false,true,null)},
43
44
{typeof(DateTimeOffset).FullName,(OdbcType.DateTime,"timestamp with local time zone","timestamp(6) with local time zone NOT NULL",false,false,newDateTime(1970,1,1))},{typeof(DateTimeOffset?).FullName,(OdbcType.DateTime,"timestamp with local time zone","timestamp(6) with local time zone NULL",false,true,null)},
0 commit comments