开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜