Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Use the LINQ to SQL Expression property on a ColumnAttribute attribute to represent a column whose contents are the result of calculation.
For code examples, see Expression.
Note
LINQ to SQL does not support computed columns as primary keys.
To represent a computed column
Add the Expression property to the ColumnAttribute attribute.
Assign a string representation of the formula to the Expression property.