public List <ExternalDataStoreType> AdaptExternalDataStore(DataTable dt)
        {
            List <ExternalDataStoreType> results = new List <ExternalDataStoreType>();

            foreach (DataRow rw in dt.Rows)
            {
                ExternalDataStoreType matchCode = new ExternalDataStoreType();
                matchCode = AdaptsItem(rw, dt);
                results.Add(matchCode);
            }
            return(results);
        }
        public ExternalDataStoreType AdaptsItem(DataRow rw, DataTable dt)
        {
            ExternalDataStoreType result = new ExternalDataStoreType();

            if (dt.Columns.Contains("Id"))
            {
                result.Id = SafeHelper.GetSafeint(rw["Id"]);
            }
            if (dt.Columns.Contains("ExternalDataStoreTypeName"))
            {
                result.ExternalDataStoreTypeName = SafeHelper.GetSafestring(rw["ExternalDataStoreTypeName"]);
            }
            return(result);
        }