public override int GetHashCode() { return(_objectDataset.GetHashCode() + 29 * Association.GetHashCode()); }
/// <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; }
/// <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; }