How to Implement the Repository Pattern in an ASP NET MVC Application

preview_player
Показать описание
In this webinar, Microsoft MVP and Infragistics Evangelist DJ Kumar will cover the following topics: What is the Repository Pattern? What is IOC and Dependency Injection? How do you implement CRUD operations using the Code First approach?; and more!
Рекомендации по теме
Комментарии
Автор

Excellent, In just 1 hour I got the idea of how to use Repository. Thank you Sir

rkoye
Автор

How Can I connect to Oracle DB at 7:09, my Entity Data Model wizard doesn't show sources for Oracle. Please help with this

achuachyuth
Автор

Missing interface use, how to switch between databases ? It's incomplete

mrt
Автор

Very helpful video - the best video I have watched about Repository pattern - thank you! :)

sofyanadesan
Автор

I am getting error (Local 'objContext' threw an exception of type from this method public
IEnumerable<warranty> GetAllWarranty()
{
return objContext.warrantys;
}

ujjwaldas
Автор

fantastic talk. for days now i started learning TDD, which then lead me to continuous internation, which then lead me to unit testing and web api testing, which then lead me to your talk of db design, , and now i can put it all together, , thankyou, fantastic. obviously us as developers need to work out the inner development procedures to get the particualr project working, and we will if we keep on learning from talks like yours
:-)!!

costasaletrari
Автор

Thanks for providing a great lecture on repository, I have build the ProductApp with you guidance, everything is working fine, except the Edit option is not working, i don't know why? The same problem i have in another project everything is working but Edit is not working, please guide me.

fawad
Автор

that's the best tutorial I found. But could you show how in the finished solution to add migration for work and fill the database initial data

ValeriiaVaganova
Автор

i still don't understand why do we need a repository when we have a dbcontext class ?

tomyang
Автор

Nice! But one thing to say, still its tightly coupled. You've used the repository class in the product controller but should the interface be used there. In this example, the IProductRepository is simply useless!

tohfatulislammilton
Автор

Great, thank you very much, learned a lot about Repository pattern.
please give some information about DI (Dependency injection) types like Constructor dependency injection, method dependency injection and attribute dependency injection.

sumitjirange
Автор

Great Tutorial.Explained in a very basic way so that every one can understand. But IOC and dependency injection is not explained here ?

gopikrishnan
Автор

hi sir!! could you explain the Unit of work too?? thx

gelordtube
Автор

Very nice video, any beginner can also understand the Repository Pattern and MVC too.
Thanks a lot.

myambition
Автор

The core of Repository Pattern is missing. I think one interface with multiple implementations (each for database type SQL, Oracle etc) and switching between these implementations at run time is the repository pattern. If we use ProductRepository instead of IProductRepository in Product controller class then there is no meaning of implementing Repository pattern. Your application will always work with SQL database.

suhasdpatil
Автор

Thank you very much. Much appreciated, I learned lots. Going to implement right now. And you've got new subscriber, so please upload new stuffs about how to code MVC in better and efficient way. Thank you once again !!!

KishorTiwari
Автор

Thank you for video, now i am clear for separation layer concern .

nileshmore
Автор

Thanks for this well explained video... I really got it now

mobareklounes
Автор

Don't Don't Don't Don't Don't follow this tutorial, it is very if you have complex database structure this DI setup will be extra complicate as this will not properly resolve Dispose method... and nested collection data will return null with inner exemptions.

davidhosni