Exemplo n.º 1
0
 public static IList <Type> BuildCollectionTypes(IEnumerable <PropertyInfo> properties, IClassStrategy classStrategy)
 {
     return(properties.Where(property => property.HasPublicGetter() &&
                             CollectionUtils.IsCollection(property.PropertyType) &&
                             !CollectionUtils.IsBlobOrClob(property.PropertyType) &&
                             !classStrategy.IsIgnored(property) &&
                             !CollectionUtils.IsQueryable(property.PropertyType)).Select(p => p.PropertyType).ToArray());
 }
Exemplo n.º 2
0
 private IList <PropertyInfo> PropertiesToBeIntrospected(IList <PropertyInfo> candidates, IClassStrategy classStrategy) =>
 candidates.Where(property => property.HasPublicGetter() &&
                  !classStrategy.IsIgnored(property.PropertyType) &&
                  !classStrategy.IsIgnored(property)).ToList();