public static DbColumn MakeColumn(DbExpression exp, string alias) { DbColumn column; DbColumnAccessExpression e = exp as DbColumnAccessExpression; if (e != null) { column = new DbColumn(alias, e.Column.Type, e.Column.DbType, e.Column.Size, e.Column.Scale, e.Column.Precision); } else { column = new DbColumn(alias, exp.Type); } return(column); }
public abstract T Visit(DbColumnAccessExpression exp);
public override DbExpression Visit(DbColumnAccessExpression exp) { return(exp); }
public virtual T Visit(DbColumnAccessExpression exp) { throw new NotImplementedException(); }