public virtual bool IsEntity(System.Type type)
 {
     return(RootEntities.Contains(type) || type.GetBaseTypes().Any(t => RootEntities.Contains(t)) || HasDelayedEntityRegistration(type));
 }
Example #2
0
        public static bool IsAttribute(this System.Type type)
        {
            Contract.Requires(type != null);

            return(type.GetBaseTypes().Any(t => t == typeof(System.Attribute)));
        }