using System; using System.Collections.Generic; namespace ServiceStack.DataAnnotations { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)] public class CompositeKeyAttribute : AttributeBase { public CompositeKeyAttribute() { this.FieldNames = new List(); } public CompositeKeyAttribute(params string[] fieldNames) { this.FieldNames = new List(fieldNames); } public List FieldNames { get; set; } } }