コード例 #1
0
ファイル: TableInfo.cs プロジェクト: m-berkani/ClearCanvas
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="name"></param>
		/// <param name="schema"></param>
		/// <param name="columns"></param>
		/// <param name="primaryKey"></param>
		/// <param name="indexes"></param>
		/// <param name="foreignKeys"></param>
		/// <param name="uniqueKeys"></param>
		internal TableInfo(string name, string schema, List<ColumnInfo> columns, ConstraintInfo primaryKey, List<IndexInfo> indexes, List<ForeignKeyInfo> foreignKeys, List<ConstraintInfo> uniqueKeys)
		{
			Name = name;
			Schema = schema;
			Columns = columns;
			PrimaryKey = primaryKey;
			Indexes = indexes;
			ForeignKeys = foreignKeys;
			UniqueKeys = uniqueKeys;
		}
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name"></param>
 /// <param name="schema"></param>
 /// <param name="columns"></param>
 /// <param name="primaryKey"></param>
 /// <param name="indexes"></param>
 /// <param name="foreignKeys"></param>
 /// <param name="uniqueKeys"></param>
 internal TableInfo(string name, string schema, List <ColumnInfo> columns, ConstraintInfo primaryKey, List <IndexInfo> indexes, List <ForeignKeyInfo> foreignKeys, List <ConstraintInfo> uniqueKeys)
 {
     Name        = name;
     Schema      = schema;
     Columns     = columns;
     PrimaryKey  = primaryKey;
     Indexes     = indexes;
     ForeignKeys = foreignKeys;
     UniqueKeys  = uniqueKeys;
 }
コード例 #3
0
		/// <summary>
		/// Returns true if this constraint matches that, property for property.
		/// </summary>
		/// <param name="that"></param>
		/// <returns></returns>
		public bool Matches(ConstraintInfo that)
		{
			return this.Name == that.Name &&
				CollectionUtils.Equal<string>(this.Columns, that.Columns, false);
		}
コード例 #4
0
 /// <summary>
 /// Returns true if this constraint matches that, property for property.
 /// </summary>
 /// <param name="that"></param>
 /// <returns></returns>
 public bool Matches(ConstraintInfo that)
 {
     return(this.Name == that.Name &&
            CollectionUtils.Equal <string>(this.Columns, that.Columns, false));
 }