internal PrimaryKey(IList <Property> keys) { var list = new List <PrimaryKeyProperty>(); foreach (var k in keys) { list.Add(k); } Keys = new PrimaryKeyPropertyCollection(); Keys.AddRange(list); }
/// <summary> /// Initializes a new instance of the <see cref="PrimaryKey"/> class. /// </summary> /// <param name="keys">The keys.</param> public PrimaryKey(params PrimaryKeyProperty[] keys) { if (keys != null) { var list = new PrimaryKeyPropertyCollection(); list.AddRange(keys); Keys = list; } else { Keys = new PrimaryKeyPropertyCollection(); } }