Prev | Current Page 194 | Next

Satheesh, N Kumar

"LINQ Quickly"

Database object not only means that it can map to database tables,
but we can map stored procedures and user-defined functions too. For objects
like stored procedures and functions, the DataContext cannot have an entity class
created, but has corresponding methods to create the expressions. The designer has
its surface split into two different areas. Entities Pane on the left and the Methods
Pane on the right of the surface. The Entities Pane , is the main pane, which displays
the entity classes that adds to the DataContext. The Methods Pane lists the methods
of the DataContext, which are mapped to the databasestored procedures and
user-defined functions.
??? ??? ???
LINQ to SQL
[ 124 ]
Now we shall see how we can create a new application and create entity classes and
methods of the DataContext.
Create a new project and add a new class Item of type LINQ to SQL Classes to
the project. Now you can see the DataClasses1 file getting added to the project. It
has two files named??”DataClasses1.dbml, and DataClasses.


Pages:
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
katalog stron dieta light pozycjonowanie życzenia katalog stron