public void AddJoin(JoinMapping mapping) { if (Joins.Any(x => x.TableName == mapping.TableName)) { throw new InvalidOperationException("Tried to add join to table '" + mapping.TableName + "' when already added."); } AddMapping(mapping, MappingType.Join); }
public void AddJoin(JoinMapping mapping) { if (joins.Exists(x => x.TableName == mapping.TableName)) { throw new InvalidOperationException("Tried to add join to table '" + mapping.TableName + "' when already added."); } joins.Add(mapping); }
public bool Equals(JoinMapping other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.attributes, attributes) && Equals(other.mappedMembers, mappedMembers) && Equals(other.ContainingEntityType, ContainingEntityType)); }
public virtual void Visit(JoinMapping joinMapping) { }
public virtual void ProcessJoin(JoinMapping joinMapping) { }
public void AddOrReplaceJoin(JoinMapping mapping) { AddOrReplaceMapping(mapping, MappingType.Join, x => x.TableName == mapping.TableName); }
public override void Visit(JoinMapping joinMapping) { joinMapping.AcceptVisitor(this); }