public MasterDetailRelationAttribute(string foreignKey) { Check.NotNullOrEmpty(foreignKey, "MasterDetailRelation.ForeignKey"); this.ForeignKey = foreignKey; this.CheckChangesOnUpdate = true; this.ColumnSelection = ColumnSelection.List; }