internal protected virtual bool OnIsFindable(Type type) { if (!Finder.IsFindable(type)) { return(false); } EntitySettings es = EntitySettings.TryGetC(type); if (es != null && !es.OnIsFindable()) { return(false); } if (IsFindable != null) { foreach (var isCreable in IsFindable.GetInvocationListTyped()) { if (!isCreable(type)) { return(false); } } } return(true); }
internal protected virtual bool OnIsFindable(object queryName) { QuerySettings qs = QuerySettings.TryGetC(queryName); if (qs == null || !qs.IsFindable) { return(false); } foreach (var isFindable in IsFindable.GetInvocationListTyped()) { if (!isFindable(queryName)) { return(false); } } return(true); }