简体   繁体   English

实体框架数据库首先不会为存储过程生成所有复杂类型

[英]Entity Framework database first does not generated all complex types for stored procedures

I've just recreated my edmx file because of some problems with the table mapping and I seem to be having some problems when I add my stored procedure. 由于表映射存在一些问题,我刚刚重新创建了edmx文件,添加存储过程时似乎遇到了一些问题。 The edmx creates only 23 complex types instead of 25 as it should. edmx仅创建23种复杂类型,而不是应创建的25种类型。

I've tried deleting the procedure reading them but it didn't work. 我尝试删除读取它们的过程,但是没有用。 All the guides I find online show me how to create the mapping when you already have a complex type generated. 在网上找到的所有指南都向我展示了如何在已经生成复杂类型的情况下如何创建映射。

Can anyone tell me how to manually generate the complex type or how to create it? 谁能告诉我如何手动生成复杂类型或如何创建它?

for Complex type i always use simple = 对于复杂类型,我总是使用simple =

List<Complex_Type_Class> _lsComplexReturn =EntityObject.ExecuteStoreQuery<Complex_Type_Class>(@"storeProcedureName;");

and class is like 课就像

public class Complex_Type_Class
{
 //all returns value's get set 
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM