使用 ColumnAttribute 属性 (Attribute) 的 LINQ to SQL IsDbGenerated 属性 (Property) 可指定字段或属性表示数据库生成的列。
有关代码示例,请参见IsDbGenerated。
指定字段或属性表示数据库生成的列
将 IsDbGenerated 属性 (Property) 添加到 ColumnAttribute 属性 (Attribute)。
将此属性 (Property) 的值设置为 true。
使用 ColumnAttribute 属性 (Attribute) 的 LINQ to SQL IsDbGenerated 属性 (Property) 可指定字段或属性表示数据库生成的列。
有关代码示例,请参见IsDbGenerated。
将 IsDbGenerated 属性 (Property) 添加到 ColumnAttribute 属性 (Attribute)。
将此属性 (Property) 的值设置为 true。