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