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