Class ValueSetForAutoGeneratedColumnException
- Namespace
- YndigoBlue.Velocity.Exceptions
- Assembly
- YndigoBlue.Velocity.dll
Thrown when attempting to explicitly set a value for an auto-generated column.
[Serializable]
public class ValueSetForAutoGeneratedColumnException : Exception, ISerializable
- Inheritance
-
ValueSetForAutoGeneratedColumnException
- Implements
Remarks
This exception occurs when trying to insert or update a value for a column that is configured for auto-generation (such as IDENTITY, AUTO_INCREMENT, or SERIAL columns). Database systems automatically generate values for these columns, and manual value assignment is typically not allowed unless explicitly enabled (e.g., IDENTITY_INSERT in SQL Server).
Constructors
- ValueSetForAutoGeneratedColumnException()
Initializes a new instance of the ValueSetForAutoGeneratedColumnException class.
- ValueSetForAutoGeneratedColumnException(string)
Initializes a new instance of the ValueSetForAutoGeneratedColumnException class with a specified error message.
Properties
- ColumnName
Gets or sets the name of the auto-generated column that was attempted to be set.
- TableName
Gets or sets the name of the table containing the auto-generated column.