C# Tutorial - Repository Pattern with C# and Dapper ORM | FoxLearn

  Рет қаралды 37,857

Fox Learn

Fox Learn

3 жыл бұрын

We will discuss What is Repository Pattern Benefits of Repository Pattern. An example that uses repository pattern to store and retrieve data from SQL Server database using Dapper ORM in C# .NET Core Windows Forms Application.
Natural Voice Text to Speech: bit.ly/3lvKtpz
Website: foxlearn.com

Пікірлер: 40
@TurntableTV
@TurntableTV 3 жыл бұрын
Dapper is so underrated as an ORM. So easy to work with databases when you have such a great tool.
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
@TurntableTV
@TurntableTV 3 жыл бұрын
@@foxlearn At this point I think you're just an AI.
@anadibrothers-yourwaytorel5259
@anadibrothers-yourwaytorel5259 3 жыл бұрын
One question: Will it work with a later version of the Dapper?
@pablo1beroiza
@pablo1beroiza 3 жыл бұрын
good tutorial @Fox Learn!!! Tnx!!!
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
@marcioalexandremarcondes557
@marcioalexandremarcondes557 9 ай бұрын
Very nice!
@Ahmad_Hamdy_Hamdeen
@Ahmad_Hamdy_Hamdeen 3 жыл бұрын
Thanks 👍👍👍👍👍
@foxlearn
@foxlearn 3 жыл бұрын
You're welcome. Thank you
@entemolu1
@entemolu1 3 жыл бұрын
I like this channel very much as there is no annoying sound and included only the essence of materials
@foxlearn
@foxlearn 3 жыл бұрын
Thank you so much !
@thisisnotajoke
@thisisnotajoke 3 жыл бұрын
I politely disagree: I find the background music distracting, the strange "click" sound very annoying and the monotone computer voice is not good at keeping my attention focused on the topic (my mind tends to drift while watching this video)
@zeeshanahmad1240
@zeeshanahmad1240 3 жыл бұрын
Plz tell me any model of gsm or usb modem. Who supports c# for offline sms
@coolwaterdvr
@coolwaterdvr Жыл бұрын
How to bind a combox using repository pattern?
@creatur
@creatur 3 жыл бұрын
Cam you please make a video of making application config for settings and database and some buttons for disable and enable by that config
@foxlearn
@foxlearn 3 жыл бұрын
You can view this video. kzbin.info/www/bejne/Y3zHopeNibOCbbM
@nganle2967
@nganle2967 3 жыл бұрын
Can you configure dependency injection (DI) for winform, plz make some videos for that
@foxlearn
@foxlearn 3 жыл бұрын
OK. Thank you for your suggestion. I'll upload soon.
@raminguliyev1520
@raminguliyev1520 3 жыл бұрын
Make some videos for coding bot(whatsapp,instagram,etc) please
@foxlearn
@foxlearn 3 жыл бұрын
Thank you for your suggestion !
@creatur
@creatur 3 жыл бұрын
1.Can you please make a video about for the Processing time with progress bar..... 2. Can you please make a chromium web browser in winform and teach how control it like selenium... Please🙏 reply
@foxlearn
@foxlearn 3 жыл бұрын
You can view kzbin.info/www/bejne/pmTXo5qio6uNb7s and kzbin.info/www/bejne/l5aUkGl7gayJj9k
@CezarLisboa1990
@CezarLisboa1990 3 жыл бұрын
No caso, é melhor ter a camada Business antes da Repository 👍
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
@clidton
@clidton 3 жыл бұрын
How i can implement this in product repisotory and call this function on grid? because i have 1 million products in db and id1 parameter is mention execute all products query from stored procedure public async Task GetProducts() { using (IDbConnection db = new SqlConnection(SqlCon.ConnectionString)) { if (db.State == ConnectionState.Closed) db.Open(); var result = await db.QueryAsync("sp_Product", new { id1 = 3 }, commandType: CommandType.StoredProcedure); return result.ToList(); } }
@foxlearn
@foxlearn 3 жыл бұрын
var result = await db.QueryAsync("sp_Product", commandType: CommandType.StoredProcedure); for get all
@clidton
@clidton 3 жыл бұрын
@@foxlearn thanks for reply but i found the solution and solution is in interface change the implementation like this Task GetAllProducts();
@SriHariVasamsetti
@SriHariVasamsetti 3 жыл бұрын
How to compatible visual studio 19 .net 5 to .net 4
@foxlearn
@foxlearn 3 жыл бұрын
You can select .NET Or .NET Core
@SriHariVasamsetti
@SriHariVasamsetti 3 жыл бұрын
@@foxlearn .net
@jonathangumapac9965
@jonathangumapac9965 3 жыл бұрын
please help me how to save image in database
@jonathangumapac9965
@jonathangumapac9965 3 жыл бұрын
in c# visual studio 2019
@foxlearn
@foxlearn 3 жыл бұрын
You can view this video kzbin.info/www/bejne/f6SaeoF6nK2ojpY . I uploaded
@Pegie98
@Pegie98 3 жыл бұрын
I want to loop my datagrid using that method.
@foxlearn
@foxlearn 3 жыл бұрын
Can you describe more details? Not clear your intention
@Pegie98
@Pegie98 3 жыл бұрын
@@foxlearn I have a sql stored procedure then i want to view in a in the datagrid with selected column then i want to group that in a datagrid. hope you understand my intentions hehehehe thank you. PG_98
@5pirithief
@5pirithief 3 жыл бұрын
You need to be carful when opening connections to the database. You need to at least wrap that IDbConnection with a using to dispose it once your done with it. Great video!
@foxlearn
@foxlearn 3 жыл бұрын
It's automatically
Repository Pattern with C# and Entity Framework, Done Right | Mosh
26:24
Programming with Mosh
Рет қаралды 867 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Repository Pattern
11:08
Coding Concepts
Рет қаралды 67 М.
Should you use the Repository Pattern? With CQRS, Yes and No!
10:27
CRUD with MVP pattern, C#, WinForms and SQL Server
23:35
RJ Code Advance EN
Рет қаралды 113 М.
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 544 М.
How to use the Repository Design Pattern in C# and ASP.NET
18:35
tutorialsEU - C#
Рет қаралды 10 М.
C# Data Access: Complex Objects with Dapper
28:09
IAmTimCorey
Рет қаралды 26 М.
Clean Architecture with ASP.NET Core 8 | .NET Conf 2023
29:17