This UpdateCheck property has
three enumerated values??”Always, Never, and WhenChanged. Following are the
different scenarios where we use the different properties of UpdateCheck.
Chapter 4
[ 123 ]
UpdateCheck.Always: Always use this member to detect conflicts.
UpdateCheck.Never: Never use this member to detect conflicts.
UpdateCheck.WhenChanged: Use this member for detecting conflicts only
when the application has changed the value of the member.
The following code is an example that represents, the Description column, and it
should never be used for checking the update conflicts:
[Column(Name="Description", DbType="nvarchar(1000)",
UpdateCheck= UpdateCheck.Never)]
public string Description
{
get; set;
}
Object Relational Designer
(O/R Designer)
LINQ to SQL object relational designer is the visual design surface to create the
entity objects and bind the controls to the LINQ to SQL objects with relationships.
O/R designer is used to create an object model in an application that maps to the
database objects.
Pages:
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205