PDA

View Full Version : خطا بعد از وصل کردن دیتا بیس به ویژوال



leila_eb
پنج شنبه 06 شهریور 1393, 11:32 صبح
بچه ها کمک کنییید لطفا..

Error 1 The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?) D:\MyProjects\Visual Studio 2012\WebSites\WebSite2\App_Code\ClinicModelDB.Cont ext.cs 12 26 WebSite2


Error 2 Inconsistent accessibility: base class 'DbContext' is less accessible than class 'clinicDBEntities4' D:\MyProjects\Visual Studio 2012\WebSites\WebSite2\App_Code\ClinicModelDB.Cont ext.cs 17 22 WebSite2



Error 3 Inconsistent accessibility: parameter type 'DbModelBuilder' is less accessible than method 'clinicDBEntities4.OnModelCreating(DbModelBuilder) ' D:\MyProjects\Visual Studio 2012\WebSites\WebSite2\App_Code\ClinicModelDB.Cont ext.cs 24 29 WebSite2


.
.
.
(26 تا خطاااا)

leila_eb
پنج شنبه 06 شهریور 1393, 11:57 صبح
تقریبا 20 خطا مشابه داره
Error 22 The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?) D:\MyProjects\Visual Studio 2012\WebSites\WebSite2\App_Code\CLINICModel.Contex t.cs 47 12 WebSite2


وقتی هم Generate class هم میزنم دوباره خطا رو میده

En_MK
پنج شنبه 06 شهریور 1393, 23:34 عصر
دوجا این ارور بررسی شده
لینک1 (http://stackoverflow.com/questions/22796205/visual-studio-2012-mvc-build-error-the-type-or-namespace-name-infrastructure)
لینک2 (http://social.msdn.microsoft.com/Forums/en-US/a5f910a9-97d1-4f9c-b935-1643d105f1db/the-type-or-namespace-name-infrastructure-does-not-exist-in-the-namespace-systemdataentity?forum=adodotnetentityframework)

mreram
جمعه 07 شهریور 1393, 00:17 صبح
سلام دوستان کسی میتونه در تعیین سطح دسترسی کاربران به روش Entity Framework
کمکم کنه؟؟