DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
PrimaryKeyAttribute.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Deveel.Data.Mapping {
4  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
6  public PrimaryKeyAttribute(string name)
7  : base(ColumnConstraints.PrimaryKey) {
8  this.ConstraintName = name;
9  }
10 
12  : this(null) {
13  }
14 
15  public string ConstraintName { get; set; }
16  }
17 }