Update: 08/12/2013 – Changed InjectionConstructor parameter to: ResolvedParameter(), to trigger compilation of the container when setting up the DbBounded Context and UnitOfWork(s) registrations. Update: 08/08/2013 – Added PerRequestLifetimeManager() to the IUnitOfWork Unity Registration (binding) in UnityConfig.cs, so that the life-cycle of the UnitOfWork(s) instances being injected have singleton behavior within the scope of an Http request. Update: 08/07/2013 – Ken from Microsoft has been kind enough to reach out and inform those of us that are using EF4 or EF5, that there maybe some potential collision issues, if there are entities with overlapping names, even if they live in different assemblies, please read below for a potential solution for this. If this does not apply to your use case or scenario, please continue on to the blog post after the block-quote. At the risk of spamming your blog in comments I am turning to email. This is Ken the poster on your blog. J Your BoundedContext implementation has another interesting usage to easily support multiple DbContexts.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
This article is related to
.NET,EF,MVC 3,MVC 4,.net,ASP.NET,bounded,ddd,domain driven design,entity framework,entlib,generic,lifecycle,lifetime,lifetimemanager,mvc,mvc 4,repositories,repository,unit of work,unity,unity 3.0,webactivator
.NET,EF,MVC 3,MVC 4,.net,ASP.NET,bounded,ddd,domain driven design,entity framework,entlib,generic,lifecycle,lifetime,lifetimemanager,mvc,mvc 4,repositories,repository,unit of work,unity,unity 3.0,webactivator
No comments:
Post a Comment