If not
specified, the public accessor will be used by default. This is also used by the
column property.
Both the entity classes have a constructor which is defined to create the EntitySet
object in the Categories class, and to initialize the EntityRef object in Items
entity class.
Function Attribute
This attribute is to specify the method in the DataContext which will be translated as
a call to a database stored procedure or a user defined function. This attribute has the
parameter which specifies the name of the actual database stored procedure or userdefined
function.
Property Description
IsComposable This is a boolean value.
False indicates mapping to a stored procedure in
the database.
True indicates mapping to a user-defined
function in the database.
Name This is of type string which represents the name
of the stored procedure or the user-defined
function in the database.
LINQ to SQL
[ 88 ]
Parameter Attribute
This attribute is used to refer to the parameters of the stored procedure or function in
the database.
Pages:
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153