EF + ODP.NET + CLOB = Value Cannot be Null - Parameter name: byteArray?

前端 未结 6 2236
死守一世寂寞
死守一世寂寞 2020-12-16 01:12

Our project recently updated to the newer Oracle.ManagedDataAccess DLL\'s (v 4.121.2.0) and this error has been cropping up intermittently. We\'ve fixed it a few times with

6条回答
  •  借酒劲吻你
    2020-12-16 01:56

    We met this problem in our project an hour ago and found a solution. It is generating this error because of null values in CLOB caolumn. We have a CLOB column and it is Nullable in database. In EntityFramework model it is String but not Nullable. We changed column's Nullable property to True in EF model and it fixed problem.

提交回复
热议问题