Prev | Current Page 186 | Next

Satheesh, N Kumar

"LINQ Quickly"

The same thing can also be done using the
Object Relation Designer, which we are going to see later in this chapter. However
the advantage of using SQLMetal is that it is a command line tool that can be used
in the automated build process. All we have to do is to use the tool and provide the
database name, location and format in which we want the objects. It is a command
line utility that automates the task. To see the different options available with
SQLMetal, type sqlmetal / at the command prompt.
LINQ to SQL
[ 118 ]
Chapter 4
[ 119 ]
SQLMetal supports two different formats for objects. One is the entity classes in
different languages like Visual Basic or C# and the other is the XML format. Then
functionality involved in SQLMetal is of two steps, explained as follows:
1. Extracting the information format from the database and creating a .dbml
file. This is the intermediate file generated for customization. From this
DBML file, we can generate code and mapping attributes.
2. Generating a code output file.


Pages:
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
xiden.bosten.pl rozrywka i hobby noclegi zakopane Bukmacher pinacle Spa w Ciechocinku