Oracle生成DBFirst的MODEL出现问题 返回

SqlSugar 老数据
3 4102

SqlSugar.UtilExceptions

SqlSugarException.NotSupportedException? "byte[]" Type NotSupported, DbBindProvider.GetPropertyTypeName error.

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): SqlSugar.

Exception stack trace:

at SqlSugar.Check.ThrowNotSupportedException (System.String message) [0x00028] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at SqlSugar.OracleDbBind.GetPropertyTypeName (System.String dbTypeName) [0x0010b] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at SqlSugar.DbFirstProvider.GetPropertyTypeName (SqlSugar.DbColumnInfo item) [0x00025] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at SqlSugar.DbFirstProvider.GetClassString (SqlSugar.DbTableInfo tableInfo, System.String& className) [0x00221] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at SqlSugar.DbFirstProvider.ToClassStringList (System.String nameSpace) [0x00042] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at SqlSugar.DbFirstProvider.CreateClassFile (System.String directoryPath, System.String nameSpace) [0x0000d] in <c49cd3fd9f184dada69bb792e21f99ec>:0  at DISTPrinter.Global+<>c.<Application_Start>b__0_0 () [0x0001a] in <d2562e55591b4a0bb8b7397f461ca930>:0  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <ac812cae460544af83bd6cf54c5eee87>:0  at System.Threading.Tasks.Task.Execute () [0x00010] in <ac812cae460544af83bd6cf54c5eee87>:0


热忱回答3

  • 这个我看一下

    0 回复
  • hdz? hdz? VIP0
    2017/10/27

    你这个有点像,数据库里某个字段使用了 BIT类型,模型这边对应的是BYTE[],所以操作失败。好像SqlSugar还不支持BYTE[] 的操作。

    0 回复
  • 已经解决 NUGET 更新或者GITHUB下载

    0 回复