Esempio n. 1
0
        /// <summary>
        ///     Copies the DiscriminatedEntityIdentity
        /// </summary>
        /// <param name="entityIdentity"> </param>
        /// <param name="replacementVarMap"> </param>
        /// <returns> </returns>
        protected override EntityIdentity VisitEntityIdentity(DiscriminatedEntityIdentity entityIdentity, VarMap replacementVarMap)
        {
            var newEntitySetCol = (SimpleColumnMap)entityIdentity.EntitySetColumnMap.Accept(this, replacementVarMap);
            var newKeys         = VisitList(entityIdentity.Keys, replacementVarMap);

            return(new DiscriminatedEntityIdentity(newEntitySetCol, entityIdentity.EntitySetMap, newKeys));
        }
Esempio n. 2
0
        protected override EntityIdentity VisitEntityIdentity(
            DiscriminatedEntityIdentity entityIdentity,
            VarMap replacementVarMap)
        {
            SimpleColumnMap entitySetColumn = (SimpleColumnMap)entityIdentity.EntitySetColumnMap.Accept <ColumnMap, VarMap>((ColumnMapVisitorWithResults <ColumnMap, VarMap>) this, replacementVarMap);

            SimpleColumnMap[] keyColumns = this.VisitList <SimpleColumnMap>(entityIdentity.Keys, replacementVarMap);
            return((EntityIdentity) new DiscriminatedEntityIdentity(entitySetColumn, entityIdentity.EntitySetMap, keyColumns));
        }
 protected override void VisitEntityIdentity(
     DiscriminatedEntityIdentity entityIdentity,
     Dump dumper)
 {
     using (new Dump.AutoXml(dumper, "DiscriminatedEntityIdentity"))
     {
         using (new Dump.AutoXml(dumper, "entitySetId"))
             entityIdentity.EntitySetColumnMap.Accept <Dump>((ColumnMapVisitor <Dump>) this, dumper);
         if (entityIdentity.Keys.Length <= 0)
         {
             return;
         }
         using (new Dump.AutoXml(dumper, "keys"))
             this.VisitList <SimpleColumnMap>(entityIdentity.Keys, dumper);
     }
 }
Esempio n. 4
0
 /// <summary>
 ///     DiscriminatedEntityIdentity
 /// </summary>
 protected override void VisitEntityIdentity(DiscriminatedEntityIdentity entityIdentity, Dump dumper)
 {
     using (new AutoXml(dumper, "DiscriminatedEntityIdentity"))
     {
         using (new AutoXml(dumper, "entitySetId"))
         {
             entityIdentity.EntitySetColumnMap.Accept(this, dumper);
         }
         if (entityIdentity.Keys.Length > 0)
         {
             using (new AutoXml(dumper, "keys"))
             {
                 VisitList(entityIdentity.Keys, dumper);
             }
         }
     }
 }