コード例 #1
0
ファイル: DLDoctor.cs プロジェクト: Anshul0305/lotas
        public int deleteDoctor(EntDoctor objent)
        {
            string ConnectionString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
            SqlConnection con = new SqlConnection(ConnectionString);
            conn.Open();
            SqlCommand cmd = new SqlCommand("Usp_DeleteDoctor", con);
            cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@DoctorID", objent.DoctorName);
                int result = cmd.ExecuteNonQuery();

                con.Close();

                cmd.Dispose();
                con.Close();
                con.Dispose();
                return result;
        }
コード例 #2
0
ファイル: BLDoctor.cs プロジェクト: Anshul0305/lotas
 public int deleteDoctor(EntDoctor objent)
 {
     DLDoctor objdl = new DLDoctor();
      int result = objdl.deleteDoctor(objent);
      return result;
 }