|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem in TableAdaptersHi,
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 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 |
|||||||||||||||||||||||