The Configure Behavior window opens for mapping
the stored procedure to the entity class.
LINQ to SQL
[ 128 ]
There are two options, Use runtime and Customize. If we select the Use runtime
option, the system automatically generates the logic for Insert, Update, and Delete
at runtime. If we select the Customize option, then we have to select the stored
procedure from the list and configure the properties as follows:
Like this, we can create stored procedures for update and delete also, and then map
them to the entity class which will simplify the operation of updating the modified
records of the entity to the database.
Chapter 4
[ 129 ]
We can easily create the windows form with data bound controls using the designer.
For the database and the tables created in the previous sections, we will see how we
can create a windows application with entity classes and controls bounded using
the Relational Designer. By using this designer, we can reduce a lot of our time in
creating the forms with controls.
Pages:
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212