【发布时间】:2021-01-19 16:14:24
【问题描述】:
<Schema Namespace="OurModel.Store"
...
xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
<Function Name="fn_Test" Schema="dbo" IsComposable="true">
<ReturnType>
<CollectionType>
<RowType>
<Property Name="A" Type="varchar" MaxLength="10" />
<Property Name="B" Type="varchar" MaxLength="60" />
</RowType>
</CollectionType>
</ReturnType>
<Parameter Name="X" Mode="In" Type="varchar" MaxLength="10" />
<Parameter Name="Y" Mode="In" Type="int" />
</Function>
错误:
错误 5:命名空间 'http://schemas.microsoft.com/ado/2009/02/edm/ssdl' 中的元素 'Function' 具有无效的子元素 'ReturnType ' 在命名空间“http://schemas.microsoft.com/ado/2009/02/edm/ssdl”中。预期的可能元素列表:命名空间“http://schemas.microsoft.com/ado/2009/02/edm/ssdl”中的“文档、命令文本、参数”以及命名空间“##other”中的任何元素。
MSDN documents ReturnType as a child element of Function.
我们的模型使用 EDMX 2.0。 ReturnType 是 EDMX 3.0 功能吗?
【问题讨论】:
-
您好,您解决了吗?因为将我的项目移动到我的新电脑后我得到了同样的错误
标签: c# entity-framework edmx ssdl