public static Nhom getFromReader(IDataReader rd) { Nhom Item = new Nhom(); docbao.entitites.DanhMuc _Item = docbao.entitites.DanhMucDal.getFromReader(rd); Item._DanhMuc = _Item; if (rd.FieldExists("N_ID")) { Item.ID = (Int32)(rd["N_ID"]); } if (rd.FieldExists("N_DM_ID")) { Item.DM_ID = (Int32)(rd["N_DM_ID"]); } if (rd.FieldExists("N_Ten")) { Item.Ten = (String)(rd["N_Ten"]); } if (rd.FieldExists("N_ThuTu")) { Item.ThuTu = (Int32)(rd["N_ThuTu"]); } if (rd.FieldExists("N_Active")) { Item.Active = (Boolean)(rd["N_Active"]); } if (rd.FieldExists("N_Hot")) { Item.Hot = (Boolean)(rd["N_Hot"]); } if (rd.FieldExists("N_Hot1")) { Item.Hot1 = (Boolean)(rd["N_Hot1"]); } if (rd.FieldExists("N_Hot2")) { Item.Hot2 = (Boolean)(rd["N_Hot2"]); } if (rd.FieldExists("N_Hot3")) { Item.Hot3 = (Boolean)(rd["N_Hot3"]); } return(Item); }
public static Video getFromReader(IDataReader rd) { Video Item = new Video(); docbao.entitites.DanhMuc _Item = docbao.entitites.DanhMucDal.getFromReader(rd); Item._DanhMuc = _Item; if (rd.FieldExists("V_ID")) { Item.ID = (Int32)(rd["V_ID"]); } if (rd.FieldExists("V_DM_ID")) { Item.DM_ID = (Int32)(rd["V_DM_ID"]); } if (rd.FieldExists("V_Url")) { Item.Url = (String)(rd["V_Url"]); } if (rd.FieldExists("V_YID")) { Item.YID = (String)(rd["V_YID"]); } if (rd.FieldExists("V_Ten")) { Item.Ten = (String)(rd["V_Ten"]); } if (rd.FieldExists("V_Anh")) { Item.Anh = (String)(rd["V_Anh"]); } if (rd.FieldExists("V_MoTa")) { Item.MoTa = (String)(rd["V_MoTa"]); } if (rd.FieldExists("V_Home")) { Item.Home = (Boolean)(rd["V_Home"]); } if (rd.FieldExists("V_Hot")) { Item.Hot = (Boolean)(rd["V_Hot"]); } if (rd.FieldExists("V_Hot1")) { Item.Hot1 = (Boolean)(rd["V_Hot1"]); } if (rd.FieldExists("V_Hot2")) { Item.Hot2 = (Boolean)(rd["V_Hot2"]); } if (rd.FieldExists("V_Hot3")) { Item.Hot3 = (Boolean)(rd["V_Hot3"]); } if (rd.FieldExists("V_Active")) { Item.Active = (Boolean)(rd["V_Active"]); } if (rd.FieldExists("V_NgayTao")) { Item.NgayTao = (DateTime)(rd["V_NgayTao"]); } if (rd.FieldExists("V_Views")) { Item.Views = (Int32)(rd["V_Views"]); } if (rd.FieldExists("V_Diem")) { Item.Diem = (Int32)(rd["V_Diem"]); } return(Item); }
public static Topic getFromReader(IDataReader rd) { Topic Item = new Topic(); docbao.entitites.DanhMuc _Item = docbao.entitites.DanhMucDal.getFromReader(rd); Item._DanhMuc = _Item; if (rd.FieldExists("TP_ID")) { Item.ID = (Int32)(rd["TP_ID"]); } if (rd.FieldExists("TP_Ten")) { Item.Ten = (String)(rd["TP_Ten"]); } if (rd.FieldExists("TP_Anh")) { Item.Anh = (String)(rd["TP_Anh"]); } if (rd.FieldExists("TP_MoTa")) { Item.MoTa = (String)(rd["TP_MoTa"]); } if (rd.FieldExists("TP_NgayTao")) { Item.NgayTao = (DateTime)(rd["TP_NgayTao"]); } if (rd.FieldExists("TP_Active")) { Item.Active = (Boolean)(rd["TP_Active"]); } if (rd.FieldExists("TP_ThuTu")) { Item.ThuTu = (Int32)(rd["TP_ThuTu"]); } if (rd.FieldExists("TP_TrangChu")) { Item.TrangChu = (Boolean)(rd["TP_TrangChu"]); } if (rd.FieldExists("TP_Home")) { Item.Home = (Boolean)(rd["TP_Home"]); } if (rd.FieldExists("TP_Views")) { Item.Views = (Int32)(rd["TP_Views"]); } if (rd.FieldExists("TP_Keywords")) { Item.Keywords = (String)(rd["TP_Keywords"]); } if (rd.FieldExists("TP_Total")) { Item.Total = (Int32)(rd["TP_Total"]); } if (rd.FieldExists("TP_Hot")) { Item.Hot = (Boolean)(rd["TP_Hot"]); } if (rd.FieldExists("TP_Hot1")) { Item.Hot1 = (Boolean)(rd["TP_Hot1"]); } if (rd.FieldExists("TP_Hot2")) { Item.Hot2 = (Boolean)(rd["TP_Hot2"]); } if (rd.FieldExists("TP_DM_ID")) { Item.DM_ID = (Int32)(rd["TP_DM_ID"]); } return(Item); }