SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 332 | Next

Scott Klein

"Professional LINQ"

Here??™s the general syntax of the Function
attribute:
[Function()]
Public IQueryable
ufnGetcontactInformation(System.Nullable ContactID)
{
//
}
This attribute has a single property, Name, which is used to specify the name of the user-defined function:
[Function(Name="ufnGetcontactInformation")]
Public IQueryable
ufnGetcontactInformation(System.Nullable ContactID)
{
//
}
208
Chapter 10: LINQ to SQL Overview
If you do not specify a Name value, as in the first example, the default value is the same string as the
user-defined function name, which in the example is ufnGetcontactInformation.
Using the Parameter Attribute
The Parameter attribute maps input parameters on stored procedure methods. It has two properties,
which are described in the following table.
Property Description Default Value (if any)
Name Name of the parameter The same string as the
parameter name in
the database
DbType Database data type
The Name property can be used two ways: with an input parameter and with an output or return
parameter.


Pages:
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6