コード例 #1
0
        public static async Task <ICollection <TModel> > QueryAsync <TModel>(QueryMany <TModel> query) where TModel : class, new()
        {
            var provider = Resolver.Get <ITransactStoreProvider <TModel> >();

            return((ICollection <TModel>)(await provider.QueryAsync(query)));
        }
コード例 #2
0
        public static ICollection <TModel> Query <TModel>(QueryMany <TModel> query) where TModel : class, new()
        {
            var provider = Resolver.Get <ITransactStoreProvider <TModel> >();

            return((ICollection <TModel>)(provider.Query(query)));
        }