ColumnAttribute Property
Meaning in Life
CanBeNull
This property indicates that the column can contain null values.
DbType
LINQ to SQL will automatically infer the data types to pass to the
database engine based on declaration of your field data. Given this, it
is typically only necessary to set DbType directly if you are dynamically
creating databases using the CreateDatabase() method of the
DataContext type.
IsDbGenerated
This property establishes that a field’s value is autogenerated by the
database.
IsVersion
This property identifies that the column type is a database timestamp
or a version number. Version numbers are incremented and timestamp
columns are updated every time the associated row is updated.
UpdateCheck
This property controls how LINQ to SQL should handle database
conflicts via optimistic concurrency.
Do'stlaringiz bilan baham: |