Dapper:The member of type SeoTKD cannot be used as a parameter Value

简介:

异常汇总:http://www.cnblogs.com/dunitian/p/4523006.html#dapper

上次说了一下Dapper的扩展Dapper.Contrib http://www.cnblogs.com/dunitian/p/5710382.html

以及这个异常:Dapper.Contrib:GetAsync<T> only supports an entity with a [Key] or an [ExplicitKey] property

这次看看新的异常:

这个的根本是因为模型字段和数据库不匹配导致的(好像之前是可以的)

数据库中并没有SeoInfo这个属性(EF里面导航属性用的还是比较多的,这次换Dapper,这个肯定是少不了的,于是就折中了下,看看能不能让Dapper忽略这个属性

解决方法:设置不可写特性,write(false)

收工

 


本文转自毒逆天博客园博客,原文链接:http://www.cnblogs.com/dunitian/p/5801073.html,如需转载请自行联系原作者

相关文章
|
22天前
|
JavaScript API
required string parameter ‘XXX‘is not present 的几种情况
required string parameter ‘XXX‘is not present 的几种情况
14 0
|
9月前
|
SQL
Parameter ‘id‘ not found. Available parameters are [collection, list]
Parameter ‘id‘ not found. Available parameters are [collection, list]
123 0
GenImageInterleaved Wrong type of control parameter 1
GenImageInterleaved Wrong type of control parameter 1
|
8月前
|
机器学习/深度学习 自然语言处理 算法
TABs(Type Abstraction,类型抽象):Open Relation and Event Type Discovery with Type Abstraction论文解读
传统的“封闭世界”信息提取(IE)方法依赖于人类本体来定义抽取范围。因此,当应用到新的领域时,这种方法就不适用了。这就要求系统能够从给定的语料库中自动推断出新的类型
43 0
使用pageHelper报错 Type definition error: [simple type, classXXXX]
使用pageHelper报错 Type definition error: [simple type, classXXXX]
|
10月前
|
SQL
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
|
Java
The type XXX cannot be resolved. It is indirectly referenced from required .class files
The type XXX cannot be resolved. It is indirectly referenced from required .class files
84 0
|
Java
Hybris DDIC type and its counterpart model class
Hybris DDIC type and its counterpart model class
110 0
Hybris DDIC type and its counterpart model class
How SAP concrete schema id is got based on transaction type plus catalog type
How SAP concrete schema id is got based on transaction type plus catalog type
100 0
How SAP concrete schema id is got based on transaction type plus catalog type
使用ST05 研究product extension field deletion
使用ST05 研究product extension field deletion
131 0
使用ST05 研究product extension field deletion