New Post: Calling a service from another service
Thanks! This will work for me. The implementation should be something like this:public override void Update(Order order) { var productSvc = new ProductService(_repository.GetRepository<Product>()...
View ArticleNew Post: Repository.Pattern.NHibernate library for v3.2 of this Repository...
I just want to say that I really like how this repository framework is laid out. I've been doing some home built generic repository implementations and trying a few other frameworks over the past...
View ArticleNew Post: How can I form a complex query() with this repository
I have checked your samples but it seems you only have simple examples that query for just one thing at once:// Simple query for all categories var categories1 = categoryRepository .Query(c =>...
View ArticleNew Post: How can I form a complex query() with this repository
Hi, Did you mean something like this:var categories1 = categoryRepository .Query(c => c.CategoryID == 1) .Select(); // Another example var categories1 = categoryRepository .Query(c =>...
View ArticleNew Post: Sorting sub-entities
Further to my earlier question, having returned the sub-entities belonging to a particular record, is it possible to sort then (assuming they are a collection) as part of the initial query - in this...
View ArticleNew Post: NuGet
Nuget is the standard for distributing libraries for use in VS these days. The UoW Framework is a fantastic tool - nuget would make it easier to integrate into a project - I'd say that's a win. So add...
View ArticleNew Post: Sorting sub-entities
Further research suggests that directly sorting an included collection is not supported by Entity Framework, so it looks like the options are to either sort the collection as an enumerable after the...
View ArticleNew Post: How can I form a complex query() with this repository
Tobias, Your answer helped me a lot. Thanks for your quick reply. Richard
View ArticleNew Post: What exactly is an IQueryFluent and an IQueryObject ?
This framework is working perfectly for me and I am now wondering how I could use some of the more advanced features that I am bit confused about. For example looking at the repository code I see the...
View ArticleNew Post: NuGet
I would love to see this on Nuget and I am sure it would help to promote use of your framework.
View ArticleNew Post: NuGet
I too would love to see NuGet support, its the gold standard nowadays. Big thanks for this fantastic framework :-)
View ArticleCreated Unassigned: Circular reference [1218]
namespace Service.Pattern{ public abstract class Service<TEntity> : IService<TEntity> where TEntity : IObjectState{public virtual async Task<bool> DeleteAsync(CancellationToken...
View ArticleNew Post: NuGet
It would be great too see this fantastic framework on Nuget. Probably more people would make use of it by simplifying the way of integration / updating process.
View ArticleNew Post: How do I add an object to a Collecting and recording all together?
lelong37 wrote: Hi Diego, You need to make sure you set each of the IObjectStates in your graph e.g. Invoice and all loop through your InvoiceItems and set each of their IObjectState to right states,...
View ArticleNew Post: How can I do an async retrieve of all the data in an entity using...
I have seen the following: public virtual async Task<TEntity> FindAsync(params object[] keyValues) { return await _dbSet.FindAsync(keyValues); } But if I don't have a specific value that I want...
View ArticleNew Post: Using AsNoTracking() for Queries
Hi, Any plans for adding the AsNoTracking() functionality while executing a query?_repository.Query(p => p.Id == productId).AsNoTracking() It is useful sometimes to set your entities to be attached...
View ArticleUpdated Wiki: ASP.NET MVC 5 Controller Example with Async
Basic sample of using the framework in an ASP.NET MVC 5 Controller. In real world this would most like be injected with an IService which would facilitate business logic and injected with necessary...
View ArticleUpdated Wiki: Documentation
For questions and support please contact Le on Twitter @LeLong37API has been updated in v3.2 release, please see v3.2 documentation below.Additional Referencesv3.2Quick Samples in LINQPadASP.NET MVC 5...
View ArticleUpdated Wiki: Documentation
For questions and support please contact Le on Twitter @LeLong37API has been updated in v3.2 release, please see v3.2 documentation below.Additional Referencesv3.2Quick Samples in LINQPadASP.NET MVC 5...
View ArticleUpdated Wiki: Documentation
For questions and support please contact Le on Twitter @LeLong37API has been updated in v3.2 release, please see v3.2 documentation below.Additional Referencesv3.2Quick Samples in LINQPadASP.NET MVC 5...
View Article