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
Back to Top