public Relation(IField source, RelationIdentity identity) { this.Identity = identity ?? throw new ArgumentNullException(nameof(identity)); this.Source = source ?? throw new ArgumentNullException(nameof(source)); this.Model = source.Model; }
public static RelationException FromRelation(RelationIdentity relation, string message = null, Exception innerException = null) => FromRelation(relation.Schema.Model, relation.Heading, message, innerException);
public Relation(object model, RelationIdentity identity) { this.Model = this.Source = new Model(identity.Schema, model); this.Identity = identity ?? throw new ArgumentNullException(nameof(identity)); }