Example #1
0
        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?
            }
        }
Example #2
0
        public Filter()
        {
            //save this so we only reflect once
            ThisType = this.GetType();

            if (!EFCoreSugarPropertyCollection.FilterTypeProperties.ContainsKey(ThisType))
            {
                EFCoreSugarPropertyCollection.RegisterFilterProperties(ThisType);
            }
        }