Exemplo n.º 1
0
 private static IEnumerable <ColumnExpression> KeysTable(TableExpression table)
 {
     if (table.Table is Table t && t.IsView)
     {
         return(t.Columns.Values.Where(c => c.PrimaryKey).Select(c => new ColumnExpression(c.Type, table.Alias, c.Name)));
     }
Exemplo n.º 2
0
        protected internal override Expression VisitTable(TableExpression table)
        {
            sb.Append(table.Name.ToString());

            return(table);
        }
Exemplo n.º 3
0
 protected internal virtual Expression VisitTable(TableExpression table)
 {
     return(table);
 }
Exemplo n.º 4
0
 private static IEnumerable <ColumnExpression> KeysTable(TableExpression table)
 {
     if (table.Table is Table t && t.IsView)
     {
         yield return(new ColumnExpression(typeof(int), table.Alias, t.Columns.Values.Single(a => a.PrimaryKey).Name));
     }
Exemplo n.º 5
0
 protected virtual bool CompareTable(TableExpression a, TableExpression b)
 {
     return(object.Equals(a.Name, b.Name));
 }
Exemplo n.º 6
0
 protected internal override Expression VisitTable(TableExpression table)
 {
     this.aliases.Add(table.Alias);
     return(base.VisitTable(table));
 }