Microsoft.com
All DevCenters
MSDN Home
MSDN Code Gallery:
Code Gallery Home
|
Browse Gallery
|
Share Code
|
Help and FAQs
Data Entry with LINQ to SQL
Home
Downloads
Discussions
People
License
Close
RSS
All Resource Updates
Discussions
Releases
Wiki
RSS
Comments
|
Print
|
Page Info
|
Change History (all pages)
Search Wiki:
Home
This sample walks through how to use the new LINQ to SQL classes on your data-entry Windows Forms. One form that demonstrates Combobox filtering uses the Northwind database. The One-to-Many form uses a sample SQL 2005 Express database that is included. That form demonstrates how to properly update, insert and delete records and how to configure the LINQ to SQL classes so that they use stored procs for their update, insert and delete behaviors. It also demonstrates how to add validation messages to the LINQ to SQL classes and have them automatically display in the UI with the ErrorProvider.
Download the code!
Articles that go with this sample:
Related Data Binding and ComboBoxes with LINQ to SQL
Creating Lookup Lists with LINQ to SQL
One-To-Many (Master-Detail) Forms with LINQ to SQL
Simple Validation with LINQ to SQL Classes
This sample uses a local SQL database. Make sure you
read this article
if you are having problems working with the database.
Last edited
Feb 26 2008 at 5:53 AM
by
BethMassi
, version 6
Comments
Sign in to add a comment
Current Release
Data Entry with LINQ t...
Mon Feb 25 2008 at 8:00 AM
More Tags ...
Popular Tags
.NET
.NET 2.0
.NET 3.5
.NET Framework
2008
2009
ADO.NET
ASP.NET
C#
C# 3.0
C++
CRM
DataBinding
Dynamics
Entity Framework
Hotfix
LINQ
LINQ to SQL
MCMS
MSCRM
MSDN Magazine
Placeholder Controls
Samples
SharePoint
silverlight
SQL Server
tfs
Tools
VB.NET
Visual Basic
Visual C#
Visual Studio
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
VS SDK
VSTO
VSX
WCF
Windows Forms
Windows Mobile
WPF
Manage Your Profile
Legal
Contact Us
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
Trademarks
Privacy Statement
Updating...