namespace BusinessAccessLayer
{
public class logiclayer
{
String Admisson_Number, First_Name, Last_Name, Father_Name, Mother_Name, Caste, Occupation, Parent_Mobilenumber,
Village_Name, District_Name, Street_Name, House_Number, Photo_Path;
DateTime Dateof_Birth, Dateof_Joining;
int Branch_Id, Gender_Id, Section_Id, State_Id, Country_Id, Religion_Id, Yearsof_Course, Pincode, Academic_Year;
logiclayer ObjDal = new logiclayer();
public string PAdmission_Number
{
set { Admisson_Number = value; }
get { return Admisson_Number; }
}
public string PFirst_Name
{
set { First_Name = value; }
get { return First_Name; }
}
public string PLast_Name
{
set { Last_Name = value; }
get { return Last_Name; }
}
public string PFather_Name
{
set { Father_Name = value; }
get { return Father_Name; }
}
namespace DataAccessLayer
{
public class ClsDalLayer
{
SqlConnection Con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
ClsDalLayer Objdal = new ClsDalLayer();
public void DalRegistration()
{
SqlCommand Cmd = new SqlCommand("Sp_InsertStudentDetails", Con);
Cmd.Parameters.AddWithValue("@Admission_Number",Objdal.);// here i could not access the properties of the class logiclayer why?
how to write code to insert code into database Help me out
Thanks in advance