コード例 #1
0
ファイル: AssociationEnd.cs プロジェクト: sungaoyong/ProSuite
 public override int GetHashCode()
 {
     return(_objectDataset.GetHashCode() + 29 * Association.GetHashCode());
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrimaryKeyAssociationEnd"/> class.
 /// </summary>
 /// <param name="association">The association.</param>
 /// <param name="primaryKey">The primary key.</param>
 public PrimaryKeyAssociationEnd([NotNull] Association association,
                                 [NotNull] ObjectAttribute primaryKey)
     : base(association, primaryKey.Dataset, false)
 {
     _primaryKey = primaryKey;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ForeignKeyAssociationEnd"/> class.
 /// </summary>
 /// <param name="association">The association.</param>
 /// <param name="foreignKey">The foreign key.</param>
 public ForeignKeyAssociationEnd([NotNull] Association association,
                                 [NotNull] ObjectAttribute foreignKey)
     : base(association, foreignKey.Dataset, true)
 {
     _foreignKey = foreignKey;
 }