private void initConfig() { lFrl = new List <FReligion>(); frg = new FReligion(); frg.f_patient_religion_id = "f_patient_religion_id"; frg.patient_religion_description = "patient_religion_description"; frg.active = "active"; frg.pkField = "f_patient_religion_id"; frg.table = "f_patient_religion"; }
public void getlFRelation() { //lDept = new List<Position>(); lFrl.Clear(); DataTable dt = new DataTable(); dt = selectAll(); foreach (DataRow row in dt.Rows) { FReligion itm1 = new FReligion(); itm1.f_patient_religion_id = row[frg.f_patient_religion_id].ToString(); itm1.patient_religion_description = row[frg.patient_religion_description].ToString(); lFrl.Add(itm1); } }