public static T GetMode <T>(DataRow dt)
        {
            DataTableEntityBuilder <T> eblist = DataTableEntityBuilder <T> .CreateBuilder(dt);

            T mode = eblist.Build(dt);

            return(mode);
        }
        public static List <T> GetList <T>(DataTable dt)
        {
            List <T> lst = new List <T>();

            if (dt == null)
            {
                return(lst);
            }
            DataTableEntityBuilder <T> eblist = DataTableEntityBuilder <T> .CreateBuilder(dt.Rows[0]);

            foreach (DataRow dr in dt.Rows)
            {
                lst.Add(eblist.Build(dr));
            }
            dt.Dispose();
            dt = null;
            return(lst);
        }