Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
167 views
in Technique[技术] by (71.8m points)

entity - EntityFramework requires primitive data type but I have myclass

I created a table with a user defined datatype column. After that I wrote a user defined class for that column in c# in entitiy framework project. But on ModelDiagram I can't see myUserDefinedDataType. When I change that type in model class manually I have an error like this.

System.Data.Entity.Core.MetadataException: 'Schema specified is not valid. The following information may be useful in resolving the previous error: The property 'columnName' on the type 'Model.Class' has a property type of 'myUserDefinedDataType' which cannot be mapped to a primitive type.

Thanks..

question from:https://stackoverflow.com/questions/65545415/entityframework-requires-primitive-data-type-but-i-have-myclass

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...