<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”中的元素“功能”在命名空间“ http://schemas.microsoft.com”中具有无效的子元素“ReturnType” /ado/2009/02/edm/ssdl'。预期的可能元素列表:命名空间“http://schemas.microsoft.com/ado/2009/02/edm/ssdl”中的“文档、命令文本、参数”以及命名空间“##other”中的任何元素。
MSDN 将 ReturnType 记录为 Function 的子元素。
我们的模型使用 EDMX 2.0。是ReturnType
EDMX 3.0 功能吗?