Question

I'm sorry for the question, but I'm new with the BLL :(

I have my DAL with a dsUsers.xsd created.

Now I'm trying to develop the BLL for UserBLL,

I realized that in some examples on the web, they make reference to the table adapters like this:

using System.Data.SqlClient;
using dsUserTableAdapters;

But every time I trying to add the last part of the above code, I get nothing starting with that name,

Do I missing something here?

Was it helpful?

Solution

You need to add a reference to your DAL library to your BLL. Then, you can reference the dataset like so:

using MyDal.MyDataSetNamespace;

You can then create an object of your dataset type

MyDataSet ds = new MyDataSet();

EDIT: To add a reference of your DAL to your BLL, right click the BLL project and choose Add Reference. In the window that pops up, choose the Projects tab and select your DAL project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top