Esempio n. 1
0
        public static IEnumerable <IEntityProperty> GetAllProperties(this IEntityDefinition definition)
        {
            var localProperties     = definition.Properties;
            var inheritedProperties = definition.GetInheritedProperties();

            return(localProperties.Concat(inheritedProperties));
        }
Esempio n. 2
0
        public static IEnumerable <IEntityProperty> GetAllProperties(this IEntityDefinition definition)
        {
            foreach (var property in definition.Properties)
            {
                yield return(property);
            }

            foreach (var property in definition.GetInheritedProperties())
            {
                yield return(property);
            }
        }