Ejemplo 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)));
     }
Ejemplo n.º 2
0
        protected internal override Expression VisitTable(TableExpression table)
        {
            sb.Append(table.Name.ToString());

            return(table);
        }
Ejemplo n.º 3
0
 protected internal virtual Expression VisitTable(TableExpression table)
 {
     return(table);
 }
Ejemplo 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));
     }
Ejemplo n.º 5
0
 protected virtual bool CompareTable(TableExpression a, TableExpression b)
 {
     return(object.Equals(a.Name, b.Name));
 }
Ejemplo n.º 6
0
 protected internal override Expression VisitTable(TableExpression table)
 {
     this.aliases.Add(table.Alias);
     return(base.VisitTable(table));
 }