Uploaded February 2025 | Updated September 2026, 1 week ago
Create a new sqlite database at startup using C# Entity Framework Core in Visual Studio IDE. I demo this by creating a SQLite database that stores countries and airports in 2 tables.
Additional topics:
- Seeding database tables
- Changing foreign key delete behavior
- Add navigation property to link related tables.
Visual Studio 22 / .NET 8.0
0:00 Intro
0:13 Nuget Database Provider
0:26 Map Classes
0:58 DbContext Setup
1:34 Startup
2:13 Insert, Update, Delete, Read
.cs files:
drive.google.com/drive/folders/1jR7xAYUu3igxqNJPMAf6wYROm7cdeZZ-?usp=sharing
Create a new sqlite database at startup using C# Entity Framework Core in Visual Studio IDE. I demo this by creating a SQLite database that stores countries and airports in 2 tables.
Additional topics:
- Seeding database tables
- Changing foreign key delete behavior
- Add navigation property to link related tables.
Visual Studio 22 / .NET 8.0
0:00 Intro
0:13 Nuget Database Provider
0:26 Map Classes
0:58 DbContext Setup
1:34 Startup
2:13 Insert, Update, Delete, Read
.cs files:
drive.google.com/drive/folders/1jR7xAYUu3igxqNJPMAf6wYROm7cdeZZ-?usp=sharing










![C# - Simulate mouse drag with SendInput (codeproject implementation)
How I simulate dragging the mouse in other Windows apps using C# SendInput function. A download from codeproject.com is used to build functions to drag the left and right mouse.
InputSender Download:
https://www.codeproject.com/Articles/5264831/How-to-Send-Inputs-using-Csharp
C# Automation Playlist:
https://youtube.com/playlist?list=PLAW4P1Sb_oJbIJIQd8-HPmsVUE6Ez6NFL&si=3rb4bQHNPmHYsaXs
#csharp
private void LeftDrag(Point start, Point end)
{
InputSender.SetCursorPosition(start.X, start.Y);
InputSender.SendMouseInput(new InputSender.MouseInput[]
{
new InputSender.MouseInput
{
dwFlags = (uint)InputSender.MouseEventF.LeftDown
}
});
Thread.Sleep(100);
InputSender.SetCursorPosition(end.X, end.Y);
// added to fix text not always being selected during drag
Thread.Sleep (100);
InputSender.SendMouseInput(new InputSender.MouseInput[]
{
new InputSender.MouseInput
{
dwFlags = (uint)InputSender.MouseEventF.LeftUp
}
});
} C# - Simulate mouse drag with SendInput (codeproject implementation)](https://i.ytimg.com/vi/FD9GBM3qPFM/mqdefault.jpg)