public static List <Woreda> ToList(BLL.Woreda v) { List <Woreda> list = new List <Woreda>(); while (!v.EOF) { Woreda t = new Woreda(); if (!v.IsColumnNull("ID")) { t.ID = v.ID; } if (!v.IsColumnNull("WoredaName")) { t.WoredaName = v.WoredaName; } if (!v.IsColumnNull("ZoneID")) { t.ZoneID = v.ZoneID; } if (!v.IsColumnNull("WoredaCode")) { t.WoredaCode = v.WoredaCode; } //if(!v.IsColumnNull("IsDeleted")) // t.IsDeleted = v.IsDeleted; //if(!v.IsColumnNull("UpdateTime")) // t.UpdateTime = v.UpdateTime; list.Add(t); v.MoveNext(); } return(list); }
public static List<Woreda> ToList(BLL.Woreda v) { List<Woreda> list = new List<Woreda>(); while (!v.EOF) { Woreda t = new Woreda(); if (!v.IsColumnNull("ID")) t.ID = v.ID; if (!v.IsColumnNull("WoredaName")) t.WoredaName = v.WoredaName; if (!v.IsColumnNull("ZoneID")) t.ZoneID = v.ZoneID; if (!v.IsColumnNull("WoredaCode")) t.WoredaCode = v.WoredaCode; //if(!v.IsColumnNull("IsDeleted")) // t.IsDeleted = v.IsDeleted; //if(!v.IsColumnNull("UpdateTime")) // t.UpdateTime = v.UpdateTime; list.Add(t); v.MoveNext(); } return list; }