Example #1
0
 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);
        }
Example #3
0
 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));
 }
Example #4
0
 public virtual void Visit(JoinMapping joinMapping)
 {
 }
Example #5
0
 public virtual void ProcessJoin(JoinMapping joinMapping)
 {
 }
Example #6
0
 public void AddOrReplaceJoin(JoinMapping mapping)
 {
     AddOrReplaceMapping(mapping, MappingType.Join, x => x.TableName == mapping.TableName);
 }
Example #7
0
 public override void Visit(JoinMapping joinMapping)
 {
     joinMapping.AcceptVisitor(this);
 }