public static Nodes SelectByVanBan(Int32 VB_ID) { Nodes Item = new Nodes(); SqlParameter[] obj = new SqlParameter[1]; obj[0] = new SqlParameter("VB_ID", VB_ID); VanbanNode item = new VanbanNode(); using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblNodes_Select_SelectByVanBan_linhnx", obj)) { while (rd.Read()) { Item = getFromReader(rd); item = VanbanNodeDal.getFromReader(rd); } } Item.vanBanNode = item; return(Item); }
public override BaseEntity getFromReader(IDataReader rd) { return(VanbanNodeDal.getFromReader(rd)); }