Esempio n. 1
0
        public static string GetKeyProperty(this DomainObject domainObject)
        {
            if (domainObject.HasCompositeKey())
            {
                return(string.Empty);
            }

            return(domainObject.Properties?.SingleOrDefault(p => p.IsPartOfKey)?.PropertyName ?? string.Empty);
        }