예제 #1
0
파일: DbColumn.cs 프로젝트: zr10728/Chloe
        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);
        }
예제 #2
0
 public abstract T Visit(DbColumnAccessExpression exp);
예제 #3
0
 public override DbExpression Visit(DbColumnAccessExpression exp)
 {
     return(exp);
 }
예제 #4
0
 public virtual T Visit(DbColumnAccessExpression exp)
 {
     throw new NotImplementedException();
 }