O'Reilly logo

LINQ for Visual C# 2008 by Fabio Claudio Ferracchiati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.4. Other LINQ to SQL Features

In this section we'll cover the following:

  • Using SQLMetal to produce entity classes and associations automatically

  • Using the INotifyPropertyChanging interface to communicate with LINQ about changes

  • Using the optimistic concurrency and database transactions

  • Using stored procedures

  • Creating a database from a program

2.4.1. SQLMetal

LINQ to SQL has a command-line tool called SQLMetal that generates entity classes, properties, and associations automatically. Table 2-3 lists the SQLMetal options.

Table 2-3. SQLMetal Generation Tool Options
OptionDescription
/server:<name>Represents the Microsoft SQL Server server name to which it connects.
/database:<name>Represents the Microsoft SQL Server database name to use to produce ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required