How to use the Repository Design Pattern in C# and ASP.NET

preview_player
Показать описание
🔥 Learn how to use the C# Repository Design Pattern! You will love it!

We'll make sure to turn you into a true developer in no time!

TIMESTAMPS
00:00 Intro
00:25 Presentation of the repository pattern
03:19 This one is for you
03:52 Implementation of the c# repository pattern
17:58 Thanks for watching!

So, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.

And what is ASP.NET?
ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies.

And what is the Repository Design Pattern, then?
The Repository Design Pattern in C# Mediates between the domain and the data mapping layers using a collection-like interface for accessing the domain objects. The Repository design pattern allows programmers to maintain their code more effectively.

To learn more, make sure to watch the video, and we promise you that you'll become a C# developer by the end of the course! Have fun!

#csharp #coding #tutorial #learn #microsoft #net #repository #designpatterns #designpattern #aspnet

TAGS

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Рекомендации по теме
Комментарии
Автор

I have 8 years of experience in programming and I found this tutorial awesome. great job! please cover more design pattern like UOW and factory design pattern.

maryamblri
Автор

What will happen if we have a complex business transaction where we are saving multiple entities in DB. How would we manage the SaveChanges method when we need a db autogenerated id of one entity as an input value for another entity in same transaction?

usmanfarooq
Автор

Excellent explanation, thank you a million.
I noticed that you invoked the repository tier from the controller (presentation) tier. Is this a best practice? I believe that specific logic requires the presence of business logic; for instance, in your example, it could be for the update method...

luisgonzalez
Автор

Okay but what If we use services? I mean this repository pattern does the exact same thing as having a service. So I don't think this pattern makes sense in this case.

kriskata
Автор

Are People using context in controllers?!

gregorydeclercq