SqlSugarException.NotSupportedException 返回

SqlSugar 老数据
3 4704

SqlSugarException.NotSupportedException: "game_insidejl.sys.hierarchyid" Type NotSupported, DbBindProvider.GetPropertyTypeName error. 这个是什么意思 要怎么处理

热忱回答3

  •    static SqlSugarClient singleDb = new SqlSugarClient(

                new ConnectionConfig()

                {

                    ConfigId = 1,

                    DbType = DbType.SqlServer,

                    ConnectionString = Config.ConnectionString,

                    InitKeyType = InitKeyType.Attribute,

                    IsAutoCloseConnection = true,

                    ConfigureExternalServices=new ConfigureExternalServices() {

                         AppendDataReaderTypeMappings=new List<KeyValuePair<string, CSharpDataType>>() {

                              new KeyValuePair<string, CSharpDataType>("game_insidejl.sys.hierarchyid",CSharpDataType.@object)

                         }

                    },


    0 回复
  • 啥意思 没个说明吗

    0 回复
  • 这个只是抛出中文异常 解决方案 提供下

    0 回复