Home All Groups Group Topic Archive Search About

Problem in TableAdapters

Author
9 Nov 2006 1:58 PM
Suhas Vengilat
Hi,

I have a class library project, where I have created a TableAdapter with a
table from SQL Server database. When I reference this library in another
classlibrary project, i am not able to use it. But the same is working if I
directly create a TableAdapter in a web project.

DataSet1TableAdapters.AccountMTableAdapter objAdpter = new
DataSet1TableAdapters.AccountMTableAdapter(); - this seems to be not working
if I use it in a class library project - but the same works if create the
dataadapter in a web project and I could use the above line of code.

What could be the problem. Please help me.


Thanks in advance.
Suhas

Author
13 Nov 2006 12:55 PM
Ciaran O''Donnell
It sounds like the constructor is internal, you would need to change that to
public in order to access it outside the assembly.

Ciaran O'Donnell

Show quote
"Suhas Vengilat" wrote:

> Hi,
>
> I have a class library project, where I have created a TableAdapter with a
> table from SQL Server database. When I reference this library in another
> classlibrary project, i am not able to use it. But the same is working if I
> directly create a TableAdapter in a web project.
>
> DataSet1TableAdapters.AccountMTableAdapter objAdpter = new
> DataSet1TableAdapters.AccountMTableAdapter(); - this seems to be not working
> if I use it in a class library project - but the same works if create the
> dataadapter in a web project and I could use the above line of code.
>
> What could be the problem. Please help me.
>
>
> Thanks in advance.
> Suhas

AddThis Social Bookmark Button