예제 #1
0
        private string GetDisplayName(EPI.Date date)
        {
            var result = string.IsNullOrEmpty(date.Base64DisplayName)
                ? date.DisplayName
                : Encoding.UTF8.GetString(Convert.FromBase64String(date.Base64DisplayName));

            return(result);
        }
예제 #2
0
        private void TryInsertMetaData(EPI.Date date, string key)
        {
            if (date != null && !_metaDataWasCreated.Contains(key))
            {
                var entity = new Entity.tEnhancedPurchaseInfoMetaData()
                {
                    EnhancedPurchaseInfoFieldName = key,
                    Description = GetDisplayName(date),
                };

                _context.tEnhancedPurchaseInfoMetaData.Add(entity);

                _metaDataWasCreated.Add(key);
            }
        }