Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Browsing all 1539 articles
Browse latest View live
↧

New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

I'm also late to the party, for which I apologise. @Daniloloko, if I understand correctly you want to:Use Unity to do dependency injectionHave two different data contexts, each of which implement...

View Article


New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

@agilefutures. Your solution is along the right lines, but I have a couple of comments. You do this:this.Container .RegisterInstance(new DB1Context("DB1Context")) .RegisterInstance(new...

View Article


New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

Your absolutely right, I have included a singleton Lifetime Management in my example, however depending on the usage scenario i.e. ASP.NET / MVC then you could use Unity.Mvc.PerRequestLifetimeManager....

View Article

New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

Ok... my code now is like this: Thats all ok? Im very bad on unity. this.Container.RegisterType<IDataContextAsync, SistemaContext>("Teste1", new ContainerControlledLifetimeManager());...

View Article

New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

Hi, Depending on your front end ContainerControlledLifetimeManager is still creates a singleton instance so just take AGBrown's advice above on Lifetime management. When declaring your Service make...

View Article


New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

You could also make your life a little simpler and actually use different interfaces for each unit of work. Don't be afraid to extend the framework. To me the below code would be very expressive; it...

View Article

New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

Hi! I had to use multiple contexts in a Windows Forms solution 4 months ago. I don't know if this would be helpful. At least, I think it's related to @Daniloloko's issue. I used Ninject and this was my...

View Article

New Post: Multiple Entity Framework Contexts(Multiple database types) on the...

Thanks all for the support... it's helped me a lot... someday the discussions can help somebody that had the same problem as i. Danilo Breda

View Article


New Post: Thoroughly by Contract?

I am enjoying working with your framework. It's a pleasure to work with a mechanism that thoroughly abstracts away the EF artifacts. But I'm a little surprised by the lack of interfaces for your...

View Article


New Post: Thoroughly by Contract?

As a further consideration, I messed around with the arrangement of the Entity abstract base class for the models. I found that I was able to use an Interface of a model as a generic parameter to the...

View Article

New Post: MongoDB Repository

Hello - I am investigating creating a Repository.Pattern.MongoDb project. I have an existing project that uses Repository.Pattern.Ef and I would like to convert it to use MongoDb. Before I embark solo,...

View Article

New Post: Repository.Pattern vs. Repository.Pattern.Ef6

Hi, I've downloaded the samples, but I haven't been able to compile it, so many reference errors. Can you make a new video, starting with a blank solution ? thanks. Armando Arias.

View Article

New Post: Repository.Pattern vs. Repository.Pattern.Ef6

Please enable NuGet packages restore.

View Article


New Post: Thoroughly by Contract?

@kimballjohnson. It's hard to understand what you are doing here, could you please fork the framework and commit your changes to the fork so I can take a look at them? I have a lot of responses to your...

View Article

New Post: Repository.Pattern vs. Repository.Pattern.Ef6

I did, but when i'm trying to use a Repository<Usuarios> I got a message saying that my classes must implement IObjectState or Delete constraint TEntity from Repository. Thanks.

View Article


New Post: Repository.Pattern vs. Repository.Pattern.Ef6

Yes your entities need to inherit from Entity.cs.

View Article

New Post: Thoroughly by Contract?

I have to agree with AGBrown, it's a bit difficult to understand and/or visualize what you are trying to do and the concern you are addressing. A pull request or fork depicting this would be nice of...

View Article


New Post: MongoDB Repository

Thanks for this request, I've been working extensively with MongoDb, however with within the MEAN stack and not in .NET. I'll chat with the team to see a MongoDb provider would be a good candidate...

View Article

New Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext

Hi Le, I need to implement Identity too, do you have any solution for that? VCardins, and do you have implemented something that worked fine? Thanks.

View Article

New Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext

Hello Lommez, not really. I ended up giving up for a while. I've implemented membershipreboot http://brockallen.com/2014/02/11/introducing-identityreboot/. I'd like to hear from Le at least some...

View Article
Browsing all 1539 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>