LoadColumnNameAttribute 类

定义

允许成员指定数据库中字段的映射。 若要重写列的名称 IDataView ,请使用 ColumnNameAttribute

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class LoadColumnNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type LoadColumnNameAttribute = class
    inherit Attribute
Public NotInheritable Class LoadColumnNameAttribute
Inherits Attribute
继承
LoadColumnNameAttribute
属性

构造函数

名称 说明
LoadColumnNameAttribute(String)

将成员映射到数据库中的特定字段。

LoadColumnNameAttribute(String[])

将成员映射到数据库中的字段集。

适用于