FromDefinitionDataSourceBuilder.AddAttribute
AddAttribute(string, AttributeDataType)
配置将包含要素属性信息的字段名称。
public FromDefinitionDataSourceBuilder AddAttribute(string name, AttributeDataType type)
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | 字符串 | 属性的数据库字段名称。 |
| type | AttributeDataType | 应将来自数据库的数据转换成的目标数据类型。 |
返回值
FromDefinitionDataSourceBuilder
另见
- enum AttributeDataType
- class FromDefinitionDataSourceBuilder
- namespace Aspose.Gis.Formats.Database.FromDefinition
- assembly Aspose.GIS
AddAttribute(string, AttributeDataType, DbType)
配置将包含要素属性信息的字段名称。
public FromDefinitionDataSourceBuilder AddAttribute(string name, AttributeDataType type,
DbType dbType)
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | 字符串 | 属性的数据库字段名称。 |
| type | AttributeDataType | 应将来自数据库的数据转换成的目标数据类型。 |
| dbType | DbType | 属性在数据库中表示的类型。如果需要保存更改,这将很有用。 |
返回值
FromDefinitionDataSourceBuilder
另见
- enum AttributeDataType
- class FromDefinitionDataSourceBuilder
- namespace Aspose.Gis.Formats.Database.FromDefinition
- assembly Aspose.GIS