예제 #1
0
		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));
			}
		}
예제 #2
0
 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);
     }
 }
예제 #3
0
		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);
			}
		}