protected virtual Expression VisitVariable(VariableExpression vex)
 {
     return vex;
 }
Beispiel #2
0
 protected override Expression VisitVariable(VariableExpression vex)
 {
     this.WriteVariableName(vex.Name);
     return vex;
 }
Beispiel #3
0
 protected virtual DeclarationCommand GetGeneratedIdCommand(IMappedEntity entity, List<MemberInfo> members, Dictionary<MemberInfo, Expression> map)
 {
     var Fields = new List<FieldDeclaration>();
     var decls = new List<VariableDeclaration>();
     var alias = new IdentifiableAlias();
     foreach (var member in members)
     {
         Expression genId = this.translator.Linguist.Language.GetGeneratedIdExpression(member);
         var name = member.Name;
         var colType = this.GetFieldType(entity, member);
         Fields.Add(new FieldDeclaration(member.Name, genId, colType));
         decls.Add(new VariableDeclaration(member.Name, colType, new FieldExpression(genId.Type, colType, alias, member.Name)));
         if (map != null)
         {
             var vex = new VariableExpression(member.Name, TypeHelper.GetMemberType(member), colType);
             map.Add(member, vex);
         }
     }
     var select = new SelectExpression(alias, Fields, null, null);
     return new DeclarationCommand(decls, select);
 }
 protected virtual Expression VisitVariable(VariableExpression vex)
 {
     this.Write(this.FormatQuery(vex));
     return vex;
 }