C# Tutorial - Repository Pattern with C# and Dapper ORM | FoxLearn
Vložit
- čas přidán 2. 12. 2020
- 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
Dapper is so underrated as an ORM. So easy to work with databases when you have such a great tool.
Thank you !
@@foxlearn At this point I think you're just an AI.
good tutorial @Fox Learn!!! Tnx!!!
Thank you !
Very nice!
I like this channel very much as there is no annoying sound and included only the essence of materials
Thank you so much !
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)
One question: Will it work with a later version of the Dapper?
Thanks 👍👍👍👍👍
You're welcome. Thank you
Plz tell me any model of gsm or usb modem. Who supports c# for offline sms
How to bind a combox using repository pattern?
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
You can view czcams.com/video/p3trglnFZ9Y/video.html and czcams.com/video/ae1_6ELGVYw/video.html
Make some videos for coding bot(whatsapp,instagram,etc) please
Thank you for your suggestion !
Cam you please make a video of making application config for settings and database and some buttons for disable and enable by that config
You can view this video. czcams.com/video/-KdqdWTNO7Q/video.html
Can you configure dependency injection (DI) for winform, plz make some videos for that
OK. Thank you for your suggestion. I'll upload soon.
No caso, é melhor ter a camada Business antes da Repository 👍
Thank you !
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();
}
}
var result = await db.QueryAsync("sp_Product", commandType: CommandType.StoredProcedure); for get all
@@foxlearn thanks for reply but i found the solution and solution is in interface change the implementation like this Task GetAllProducts();
How to compatible visual studio 19 .net 5 to .net 4
You can select .NET Or .NET Core
@@foxlearn .net
please help me how to save image in database
in c# visual studio 2019
You can view this video czcams.com/video/Is7INDgHuX4/video.html . I uploaded
I want to loop my datagrid using that method.
Can you describe more details? Not clear your intention
@@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
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!
It's automatically