private static void BindUniqueKey(string uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { var tokens = uniqueKeyAttribute.Split(','); System.Array.ForEach(tokens, t => table.GetOrCreateUniqueKey(t.Trim()).AddColumn(column)); } }
protected static void BindUniqueKey(XmlAttribute uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { StringTokenizer tokens = new StringTokenizer(uniqueKeyAttribute.Value, ", "); foreach (string token in tokens) table.GetOrCreateUniqueKey(token).AddColumn(column); } }
protected static void BindUniqueKey(string uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { var tokens = new StringTokenizer(uniqueKeyAttribute, ",", false); foreach (string token in tokens) table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column); } }