How to Connect to and Modify a SQL Server Database with C# (WPF/LINQ)
In this video I show how to connect to and modify a SQL Server Database table through a WPF C# application.
I use SQL Server Express 2014 and Visual Studio Community Edition 2015 here, but I’ve used other versions in the past and its been the same.
C# Code:
using ;
namespace ExampleApplication
{
public partial class MainWindow : Window
{
ExampleLINQtoSQLClassDataContext dc = new ExampleLINQtoSQLClassDataContext(
);
public MainWindow()
{
InitializeComponent();
if (()) = ;
}
private void SaveButton_Click(object sender, RoutedEventArgs e)
{
();
}
}
}
The XAML Code (replace the braces with angle-brackets, YouTube doesn’t allow the angle brackets in the descri
2 views
1220
409
8 hours ago 00:02:56 1
Oh Wonder - Technicolour Beat - 10 Years On (Official Audio)
17 hours ago 00:02:19 1
How to DO Block Blast Glitch - GET HIGH SCORE with Block Blast Hack/MOD APK iOS & Android
2 days ago 00:14:37 1
🔴 As US Cozies Up To Russia’s Economy, Putin’s Call With China Just Changed Everything
2 days ago 00:11:17 1
Potato Tour of Russia 2025: From Storage to Processing at the WEFRY Plant
2 days ago 00:04:19 13
Al Bano & Romina Power - Liberta
2 days ago 00:05:19 1
How to Grow Elephant Garlic in Containers – The Organic Way! 🧄#garlic #gardening #containergardening
3 days ago 00:00:26 1
Flower field painting/ easy acrylic painting for beginners
3 days ago 00:25:49 1
Look at This Plastic Bottle Garden – You’ll Regret Not Knowing Sooner!
3 days ago 00:58:12 2
ALIEN ABDUCTION, BLACK EYED KIDS AND ONE GIANT BUG (SN 18 EP 41) TRUE PARANORMAL EXPERIENCES
4 days ago 00:07:36 2
Eye splice in double braid polyester rope
4 days ago 00:03:23 3
Killswitch Engage - Collusion
5 days ago 00:11:41 1
I UPGRADED new LEGO minifigures!
5 days ago 00:02:02 1
Imagine Peace Tower - a beacon to world peace
5 days ago 00:04:34 1
Janiva Magness ~ You Were Never Mine
1 week ago 00:03:47 2
SCOOTER - HOW MUCH IS THE FISH (Metal cover)
1 week ago 01:29:41 1
Ancient DNA Reveals Hidden Migrations: Uncovering the Secrets of Human Evolution & Expansion
1 week ago 00:04:22 1
Real installation of container house / modular homes / sustainable home
1 week ago 00:02:54 1
The Future of Hydrogen Energy: Clean Power & Vehicles | How They Work & What’s Next
1 week ago 00:23:30 1
Terrifying Truths Learned on Carnivore
1 week ago 01:32:50 4
Human Flourishing & The Crime of the Century | The Acceptance of Life Podcast Ep. 03
1 week ago 00:04:45 1
Как Сделать МЕРЕНГОВЫЙ РУЛЕТ / Готовим Дома РУЛЕТ
2 weeks ago 00:02:47 4
A Day To Remember - LeBron (Official Audio)
2 weeks ago 00:36:51 1
💥 Breaking! Protestant Church ⛪ in England 🇬🇧 on Path to Holy Orthodoxy ☦️
2 weeks ago 00:01:51 1
Automatic Vacuum Packed Fresh Sweet Corn Cob Making Production Line