|
by wwagner via Bill Wagner: C# Development Blog | MySmartChannels on 11/19/2007 12:44:33 AM
Toward the bottom of the LINQ to SQL samples, you'll find several methods discussing the DataContext class. This is an important class that provides the interface between your code and the physical database storage.
There are also some convenient methods that can make it easier for you to initialize a LINQ-enabled application for the first time.
One of the startup tasks would be to check for a database's existence, and create that database if necessary.
This snippet of code shows you ho
... [ read more ]
|