PDA

View Full Version : خبر: عدم پشتیبانی کامل .net framework از EF6



nathan
چهارشنبه 23 بهمن 1392, 10:38 صبح
با سلام
دوستانی که قصد استفاده از VS 2013 رو به همراه MS Sql server 2012 و EF6 دارند بعد از پاک کردن دو فایل .tt دچار خطای :


The provider did not return a ProviderManifest instance. could not determine storage version


خواهند شد. در فرومهای مایکروسافت اعلام شده که EntityDataSource که جزئی از کتابخانه .net هست متأسفانه هنوز در مد EF5 اجرا می شود و برای مقدار Provider آن باید از 2008 به جای 2012 استفاده کرد.
فایل .edmx را در notepad باز کردن و مقدار ProviderManifestToken="2012" را به ProviderManifestToken="2008" تغییر دهید و از EF5 به جای EF6 استفاده کنید.
این هم اصل جواب :




Certainly, the EntityDataSource that is part of .NET framework does not support EF6. When you get the error it is because the control is trying to load the model in the EF5 runtime, which does not support 2012 as the value for ProviderManifestToken.We have an updated version of the EntityDataSource in the works that supports the EF6 runtime, and the current plan is to make it available in a NuGet package. In the meanwhile, it seems that there are two workarounds:
- Editing your edmx file and replacing 2012 with 2008 then using EF5 instead of EF6
- Using model binding for WebForms instead of a DataDataSource control.