开发者

System.Data.Common.DataAdapter.DataAdapter()' is inaccessible due to its protection level

开发者 https://www.devze.com 2023-03-05 06:37 出处:网络
i am getting this error \" System.Data.C开发者_开发技巧ommon.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

精彩评论

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