با سلام
من یک پروژه چند لایه دارم که دارای دو لایه DAL و BLL هست.
زمانی که میخوام از لایه BLL، لایه DAL فراخونی کنم با این پیغام مواجه میشم.
The name 'DAL' does not exist in the current context
ریفرنس لایه DAL به BLL هم انجام شده
BLL Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace BLL
{
public class Panel
{
public static SqlDataReader GetInformationPanel(string PanelId)
{
SqlDataReader RetVal = DAL.Panel.GetInformationPanel(PanelId);
return RetVal;
}
}
}
DAL Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace DAL
{
public class Panel
{
public static SqlDataReader GetInformationPanel(string PanelId)
{
SqlDataReader Val = DALBase.EReader("select * from TBLPanel where PanelId = " + PanelId + "", System.Data.CommandType.Text, new SqlParameter[] { });
return Val;
}
}
}