System.Data.Common.DataAdapter.DataAdapter()' is inaccessible due to its protection level
i am getting this error " System.Data.C开发者_开发技巧ommon.DataAdapter.DataAdapter()' is inaccessible due to its protection level"
I am trying to use DataAdaptar class in my controller in MVC 2..
Umair
You can't. The constructor is protected because this class is not intended to be instantiated by user code. You could use the specific adapter for your database. For example for SQL Server that would be: SqlDataAdapter.
精彩评论