Problem in TableAdapters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Suhas Vengilat

    Problem in TableAdapters

    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.

    DataSet1TableAd apters.AccountM TableAdapter objAdpter = new
    DataSet1TableAd apters.AccountM TableAdapter(); - 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

  • Cor Ligthert [MVP]

    #2
    Re: Problem in TableAdapters

    Suhas,

    Are you sure that you have set the references to your class library in your
    non webproject?
    And the using in top?

    Cor

    "Suhas Vengilat" <SuhasVengilat@ discussions.mic rosoft.comschre ef in
    bericht news:22768B38-7FF8-4CD2-BE64-F69EB38CD49A@mi crosoft.com...
    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.
    >
    DataSet1TableAd apters.AccountM TableAdapter objAdpter = new
    DataSet1TableAd apters.AccountM TableAdapter(); - 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
    >

    Comment

    Working...