问题描述
<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 功能吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)