sir, iam a fresher and iam getting the following error and could't solve myself please help me out
MYCODE IN DAL IS
namespace DAL
{
public class DalEmployee
{
SqlConnection con = new SqlConnection("data source=.\\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|Database1.sdf;User Instance=true");
public DataSet ds; SqlDataAdapter da; SqlCommandBuilder bldr;
public DalEmployee()
{
da = new SqlDataAdapter("Select * from Employe", con);
ds = new DataSet();
da.Fill(ds, "Employee");
da.FillSchema(ds, SchemaType.Source, "Employee");
bldr = new SqlCommandBuilder(da);
}
public void UpdateDB()
{
da.Update(ds, "Employee");
}
}
}
MYCODE IN BLL IS
using DAL;
namespace BLL
{
public class BllEmployee
{
int Esalary, Eid, Edeptno; DataRow Rec;
string Ename, Edesignation; DateTime Edoj;
DalEmployee objdal = new DalEmployee();
public int PEid
{
set { Eid = value; }
get { return Eid; }
}
public string PEname
{
set { Ename = value; }
get { return Ename; }
}
public string PEdesignation
{
set { Edesignation = value; }
get { return Edesignation; }
}
public DateTime PEdoj
{
set { Edoj = value; }
get { return Edoj; }
}
public int PEsalary
{
set { Esalary = value; }
get { return Esalary; }
}
public int PEdeptno
{
set { Edeptno = value; }
get { return Edeptno; }
}
BllEmployee obj = new BllEmployee();
public void InsertRec()
{
here ->-> Rec = obj.ds.Tables[0].NewRow();
Rec[0] = Eid;
Rec[1] = Ename;
}
->->// BLL.BllEmployee does not contain a definition for ds and no extension method ds accepting afirst argument of type BLL.BllEmployee' could be found(are you missing a using directiveor an seeembly reference?)
Here iam not getting the dataset ds;