DataTableMapping.SourceTable 属性

定义

获取或设置数据源中区分大小写的源表名称。

public:
 property System::String ^ SourceTable { System::String ^ get(); void set(System::String ^ value); };
public string SourceTable { get; set; }
[System.Data.DataSysDescription("DataTableMapping_SourceTable")]
public string SourceTable { get; set; }
member this.SourceTable : string with get, set
[<System.Data.DataSysDescription("DataTableMapping_SourceTable")>]
member this.SourceTable : string with get, set
Public Property SourceTable As String

属性值

数据源中区分大小写的源表名称。

实现

属性

示例

以下示例创建一个 DataTableMapping 对象并设置其某些属性。

public void CreateDataTableMapping()
{
    DataTableMapping mapping = new DataTableMapping();
    mapping.SourceTable = "Categories";
    mapping.DataSetTable = "DataCategories";
}
Public Sub CreateDataTableMapping()
    Dim mapping As New DataTableMapping()
    mapping.SourceTable = "Categories"
    mapping.DataSetTable = "DataCategories"
End Sub

适用于

另请参阅