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