Hi
I have create a website and i have create two folders one is BAL(Business access layer) and other one is DAL(Data access layer)
In BAL i have created this code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class Employees
{
public Employees()
{ }
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public string Number { get; set; }
}
and i have create class in DAL and i am trying to create below code in DAL
problem is that Employees class is not accessing and also list<> not accessing here
i don't know why it is happening can any one help me please
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
///
/// Summary description for insert_customer
///
public class insert_customer
{
public insert_customer()
{}
public List insert_emp(Employees emp)
{
}
}
problem is that Employees class is not accessing and also list<> not accessing here
i don't know why it is happening can any one help me please

Scott LyslePosted Oct 5, 2012, 10:31 PM
I'm assuming that the BAL code is in one folder and the DAL is in another. I don't see a namespace defined if this is the actual code. If you have a namespace and reference it in you DAL code I think the Employees class will become visible to your DAL code.
So, it would look something like this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LuckyProject.BAL
{
public class Employees
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public string Number { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LuckyProject.BAL;
namespace LuckyProject.DAL
{
public class Customer
{
public List
{
// code to insert new employee and return a list of employees
}
}
}