Ejemplo n.º 1
0
        public static HashKeyImage AsHashKeyImage <T>(this T item, string[] keyFieldList, string[] fieldList)  where T : new()
        {
            var hashKeyImage = new HashKeyImage();

            hashKeyImage.Key   = item.AsHashImage(keyFieldList);
            hashKeyImage.Image = item.AsHashImage(fieldList);
            return(hashKeyImage);
        }
Ejemplo n.º 2
0
        public static HashKeyImage AsHashKeyImage <T>(this T item, string keyFieldListCSV, string fieldListCSV)  where T : new()
        {
            var hashKeyImage = new HashKeyImage();
            var keyFieldList = keyFieldListCSV.Split(',');
            var fieldList    = fieldListCSV.Split(',');

            hashKeyImage.Key   = item.AsHashImage(keyFieldList);
            hashKeyImage.Image = item.AsHashImage(fieldList);
            return(hashKeyImage);
        }