コード例 #1
0
 internal void Dump(ExpressionDumper dumper)
 {
     dumper.Begin(this.GetType().Name, new Dictionary <string, object>()
     {
         {
             "DataSpace",
             (object)this.DataSpace
         }
     });
     dumper.Begin("Parameters", (Dictionary <string, object>)null);
     foreach (KeyValuePair <string, TypeUsage> parameter in this.Parameters)
     {
         dumper.Begin("Parameter", new Dictionary <string, object>()
         {
             {
                 "Name",
                 (object)parameter.Key
             }
         });
         dumper.Dump(parameter.Value, "ParameterType");
         dumper.End("Parameter");
     }
     dumper.End("Parameters");
     this.DumpStructure(dumper);
     dumper.End(this.GetType().Name);
 }
コード例 #2
0
ファイル: DbSetClause.cs プロジェクト: longde123/playscript
 internal override void DumpStructure(ExpressionDumper dumper)
 {
     dumper.Begin("DbSetClause");
     if (null != this.Property)
     {
         dumper.Dump(this.Property, "Property");
     }
     if (null != this.Value)
     {
         dumper.Dump(this.Value, "Value");
     }
     dumper.End("DbSetClause");
 }
コード例 #3
0
 internal override void DumpStructure(ExpressionDumper dumper)
 {
     dumper.Begin(nameof(DbSetClause));
     if (this.Property != null)
     {
         dumper.Dump(this.Property, "Property");
     }
     if (this.Value != null)
     {
         dumper.Dump(this.Value, "Value");
     }
     dumper.End(nameof(DbSetClause));
 }
コード例 #4
0
        internal void Dump(ExpressionDumper dumper)
        {
            //
            // Dump information about this command tree to the specified ExpressionDumper
            //
            // First dump standard information - the DataSpace of the command tree and its parameters
            //
            Dictionary <string, object> attrs = new Dictionary <string, object>();

            attrs.Add("DataSpace", this.DataSpace);
            dumper.Begin(this.GetType().Name, attrs);

            //
            // The name and type of each Parameter in turn is added to the output
            //
            dumper.Begin("Parameters", null);
            foreach (KeyValuePair <string, TypeUsage> param in this.Parameters)
            {
                Dictionary <string, object> paramAttrs = new Dictionary <string, object>();
                paramAttrs.Add("Name", param.Key);
                dumper.Begin("Parameter", paramAttrs);
                dumper.Dump(param.Value, "ParameterType");
                dumper.End("Parameter");
            }
            dumper.End("Parameters");

            //
            // Delegate to the derived type's implementation that dumps the structure of the command tree
            //
            this.DumpStructure(dumper);

            //
            // Matching call to End to correspond with the call to Begin above
            //
            dumper.End(this.GetType().Name);
        }
コード例 #5
0
 internal override void DumpStructure(ExpressionDumper dumper)
 {
     base.DumpStructure(dumper);
     if (this.Predicate != null)
     {
         dumper.Dump(this.Predicate, "Predicate");
     }
     dumper.Begin("SetClauses", (Dictionary <string, object>)null);
     foreach (DbModificationClause setClause in (IEnumerable <DbModificationClause>) this.SetClauses)
     {
         setClause?.DumpStructure(dumper);
     }
     dumper.End("SetClauses");
     dumper.Dump(this.Returning, "Returning");
 }
コード例 #6
0
 internal override void DumpStructure(ExpressionDumper dumper)
 {
     base.DumpStructure(dumper);
     dumper.Begin("SetClauses");
     foreach (DbModificationClause setClause in (IEnumerable <DbModificationClause>) this.SetClauses)
     {
         setClause?.DumpStructure(dumper);
     }
     dumper.End("SetClauses");
     if (this.Returning == null)
     {
         return;
     }
     dumper.Dump(this.Returning, "Returning");
 }
コード例 #7
0
        internal override void DumpStructure(ExpressionDumper dumper)
        {
            base.DumpStructure(dumper);

            dumper.Begin("SetClauses");
            foreach (var clause in SetClauses)
            {
                if (null != clause)
                {
                    clause.DumpStructure(dumper);
                }
            }
            dumper.End("SetClauses");

            if (null != Returning)
            {
                dumper.Dump(Returning, "Returning");
            }
        }
コード例 #8
0
        internal override void DumpStructure(ExpressionDumper dumper)
        {
            base.DumpStructure(dumper);

            dumper.Begin("SetClauses");
            foreach (DbModificationClause clause in this.SetClauses)
            {
                if (null != clause)
                {
                    clause.DumpStructure(dumper);
                }
            }
            dumper.End("SetClauses");

            if (null != this.Returning)
            {
                dumper.Dump(this.Returning, "Returning");
            }
        }