Retrieves a list of identity columns for a specified data contract type.
- Namespace
- DbSyncKit
.DB .Manager - Containing Type
- CacheManager
Syntax
public static List<string> GetIdentityColumns(Type type)Remarks
This method uses reflection to analyze the properties of the specified type and retrieves properties marked with a [Key] attribute, indicating identity columns.
Parameters
| Name | Type | Description |
|---|---|---|
| type | Type | The type for which to retrieve identity columns. |
Return Value
| Type | Description |
|---|---|
| List |
A list containing the names of identity columns for the specified data contract type. |