Exemplo n.º 1
0
 public JoinObjectBuilder(Action <JoinDefinition> fn)
 {
     fn(_join);
     //_dataAccessor = dataAccessor;
     try {
         if (_join.GenerateRelations().Count < 1)
         {
             throw new BDadosException($"This Join found no Relations.");
         }
     } catch (Exception x) {
         var tables = "";
         foreach (var a in _join.Joins)
         {
             tables += $"{a.TableName} (AS {a.Alias})";
             tables += a.Args != null ? $" (ON {a.Args})" : "";
             tables += "\n";
         }
     }
 }