我正在开发一个使用Entity Framework 5,Visual Studio 2012的Web应用程序,并且需要支持SQL Server和Oracle数据库提供程序。我为Oracle数据库创建了实体模型。我认为在连接字符串进行一些更改后它会起作用,但是不是那么容易...我找到了这篇文章:http://www.codeproject.com/Articles/82017/Preparing-an-Entity-Framework-model-for-multi-prov现在我得到以下错误
警告0005:未找到属性“版本”的架构信息。
我的_s_entity.ssdl(2,2):错误0010:在根元素中,命名空间http://schemas.microsoft.com/ado/2009/11/edmx中的元素Edmx是意外的。预期的模式在以下其中一个名称空间中:http://schemas.microsoft.com/ado/2006/04/edm/ssdl,http://schemas.microsoft.com/ado/2009/02/edm/ssdl,http://schemas.microsoft.com/ado/2009/11/edm/ssdl。
堆栈跟踪:
[MetadataException: Schema specified is not valid. Errors:
my_s_entity.ssdl(2,12) : warning 0005: Could not find schema information for the attribute 'Version'.
my_s_entity.ssdl(2,2) : error 0010: The element Edmx in namespace http://schemas.microsoft.com/ado/2009/11/edmx was unexpected for the root element. The expected Schema in one of the following namespaces: http://schemas.microsoft.com/ado/2006/04/edm/ssdl, http://schemas.microsoft.com/ado/2009/02/edm/ssdl, http://schemas.microsoft.com/ado/2009/11/edm/ssdl.]
System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +965
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
System.Web.UI.Control.EnsureChildControls() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
我在网上搜寻了很久,但是没有找到任何解决方案。为什么会出现这个问题呢?如果有人曾经遇到过类似的问题并且有解决方案,请分享一下。