Table of Contents

Enum IdentityBehaviorType

Namespace
YndigoBlue.Velocity.Enums
Assembly
YndigoBlue.Velocity.dll

Specifies how auto-generated identity values are retrieved after an INSERT operation.

public enum IdentityBehaviorType

Fields

SeparateStatement = 0

A separate statement is required to retrieve the identity value after the INSERT.

OutputParameter = 1

An output parameter is added to the INSERT command to capture the identity value.

ExecuteReader = 2

The identity value is retrieved using ExecuteReader instead of ExecuteNonQuery.

Remarks

Different database systems use different mechanisms to return identity values (auto-increment IDs) after inserting a record. This enum indicates which method a specific database uses to retrieve the generated identity value.