예제 #1
0
 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;
 }
예제 #2
0
 public static RelationException FromRelation(RelationIdentity relation, string message = null, Exception innerException = null) => FromRelation(relation.Schema.Model, relation.Heading, message, innerException);
예제 #3
0
 public Relation(object model, RelationIdentity identity)
 {
     this.Model    = this.Source = new Model(identity.Schema, model);
     this.Identity = identity ?? throw new ArgumentNullException(nameof(identity));
 }