## AddAttribute(string, AttributeDataType) {#addattribute}

Configures the name of the field that will contain information for the feature attribute.

```csharp
public DatabaseQueryDataSourceBuilder AddAttribute(string name, AttributeDataType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of query field for attribute. |
| type | AttributeDataType | Type of data into which data from the database should be converted. |

### Return Value

[`DatabaseQueryDataSourceBuilder`](../)

### See Also

* enum [AttributeDataType](../../../aspose.gis/attributedatatype/)
* class [DatabaseQueryDataSourceBuilder](../)
* namespace [Aspose.Gis.Formats.Database](../../databasequerydatasourcebuilder/)
* assembly [Aspose.GIS](../../../)

---

## AddAttribute(string, AttributeDataType, DbType) {#addattribute_1}

Configures the name of the field that will contain information for the feature attribute.

```csharp
public DatabaseQueryDataSourceBuilder AddAttribute(string name, AttributeDataType type, 
    DbType dbType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of query field for attribute. |
| type | AttributeDataType | Type of data into which data from the database should be converted. |
| dbType | DbType | The type by which the attribute is represented in the database. This is useful if you need to save changes. |

### Return Value

[`DatabaseQueryDataSourceBuilder`](../)

### See Also

* enum [AttributeDataType](../../../aspose.gis/attributedatatype/)
* class [DatabaseQueryDataSourceBuilder](../)
* namespace [Aspose.Gis.Formats.Database](../../databasequerydatasourcebuilder/)
* assembly [Aspose.GIS](../../../)


