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

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

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