mirror of
https://github.com/OpenDAoC/OpenDAoC-Core
synced 2026-08-12 00:23:14 -04:00
26 lines
682 B
C#
26 lines
682 B
C#
using System;
|
|
|
|
namespace DOL.Database.Attributes
|
|
{
|
|
/// <summary>
|
|
/// Attribute to indicate the PrimaryKey of an DatabaseObject.
|
|
/// Set AutoIncrement to true to eliminate the TableName_ID column.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
|
|
public class PrimaryKey : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Constructor for Attribute
|
|
/// </summary>
|
|
public PrimaryKey()
|
|
{
|
|
AutoIncrement = false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Indicates if this column will auto increment.
|
|
/// Setting to true will eliminate the tablename_id column for this table.
|
|
/// </summary>
|
|
public bool AutoIncrement { get; set; }
|
|
}
|
|
}
|