protected override void CheckUniqueRelationReference(ReferenceModifierProtocol reference) { if (reference == null) { throw new InvalidOperationException("Unique relations with a Reference can only reference other References."); } }
protected void ApplyUniqueRelations() { //Set unique relations foreach (RelationProtocol relation in this.UniqueRelations) { ReferenceModifierProtocol reference = relation.ReferenceInstance as ReferenceModifierProtocol; CheckUniqueRelationReference(reference); int refId = reference.GetRelationObjID(relation.Name); this.ClarifyGeneric.AppendFilter("objid", NumberOps.Equals, refId); } }
protected void ApplyRelations(ClarifyDataRow row) { foreach (RelationProtocol relation in this.Relations) { ReferenceModifierProtocol reference = relation.ReferenceInstance as ReferenceModifierProtocol; if (reference != null) { row.RelateByID(reference.GetRecordObjID(), relation.Name); } else { relation.ReferenceInstance.PreProcess(); row.RelateRecord(relation.ReferenceInstance.ClarifyGeneric.Rows[0], relation.Name); } } }
protected override void CheckUniqueRelationReference(ReferenceModifierProtocol reference) { if( reference == null ) throw new InvalidOperationException("Unique relations with a Reference can only reference other References."); }
protected virtual void CheckUniqueRelationReference(ReferenceModifierProtocol reference) { }