Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 oracle CLOB NCLOB 大文本类型 #259

Closed
2881099 opened this issue Mar 30, 2020 · 1 comment
Closed

关于 oracle CLOB NCLOB 大文本类型 #259

2881099 opened this issue Mar 30, 2020 · 1 comment

Comments

@2881099
Copy link
Collaborator

2881099 commented Mar 30, 2020

v1.3.2 版本解决办法,使用 BLOB 类型 + byte[] 解决存储问题,读写正常。

public byte[] Data { get; set; }

v1.3.2 后面的版本采取以下方法:

[Column(DbType = "clob")]
public string Data { get; set; }

//或者

[Column(StringLength = -1)]
public string Data { get; set; }
@2881099
Copy link
Collaborator Author

2881099 commented Mar 30, 2020

注意:使用 .NoneParameter(true) 可能会报错

Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant