Beispiel #1
0
        public static async Task <bool> QueryAsync <TModel>(QueryAny <TModel> query) where TModel : class, new()
        {
            var provider = Resolver.Get <ITransactStoreProvider <TModel> >();

            return((bool)(await provider.QueryAsync(query)));
        }
Beispiel #2
0
        public static bool Query <TModel>(QueryAny <TModel> query) where TModel : class, new()
        {
            var provider = Resolver.Get <ITransactStoreProvider <TModel> >();

            return((bool)(provider.Query(query)));
        }