質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top