public static void BuildFilters() { var types = GetAllTypesInAssemblies(typeof(Filter)); foreach (var type in types) { EFCoreSugarPropertyCollection.RegisterFilterProperties(type); //TODO: prebuild some of the expressions here also? } }
public Filter() { //save this so we only reflect once ThisType = this.GetType(); if (!EFCoreSugarPropertyCollection.FilterTypeProperties.ContainsKey(ThisType)) { EFCoreSugarPropertyCollection.RegisterFilterProperties(ThisType); } }