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