示例#1
0
        private ColumnNode NewColumn(DbColumn dbColumn)
        {
            var res = new ColumnNode();

            res.Table      = this;
            res.Property   = dbColumn.Property;
            res.ColumnName = dbColumn.Name;
            res.DbColumn   = dbColumn;
            return(res);
        }
示例#2
0
        private ColumnNode NewColumn(IRdbColumnInfo dbColumn)
        {
            var res = new ColumnNode();

            res.Table      = this;
            res.Property   = dbColumn.Property;
            res.ColumnName = dbColumn.Name;
            res.DbColumn   = dbColumn;
            res.DbType     = dbColumn.DbType;
            res.HasIndex   = dbColumn.HasIndex;
            return(res);
        }
示例#3
0
        IColumnNode ISubQuery.Column(IColumnNode rawProperty)
        {
            var raw = rawProperty as ColumnNode;

            var property = new ColumnNode
            {
                ColumnName = raw.ColumnName,
                Property   = raw.Property,
                Table      = this,
            };

            return(property);
        }
示例#4
0
 private ColumnNode NewColumn(IPersistanceColumnInfo dbColumn)
 {
     var res = new ColumnNode();
     res.Table = this;
     res.Property = dbColumn.Property;
     res.ColumnName = dbColumn.Name;
     res.DbColumn = dbColumn;
     return res;
 }
示例#5
0
        IColumnNode ISubQuery.Column(IColumnNode rawProperty, string alias)
        {
            var raw = rawProperty as ColumnNode;

            var property = new ColumnNode
            {
                ColumnName = raw.ColumnName,
                Property = raw.Property,
                Table = this,
                Alias = alias
            };

            return property;
        }
示例#6
0
        IColumnNode ISubQuery.Column(IColumnNode rawProperty)
        {
            var raw = rawProperty as ColumnNode;

            var property = new ColumnNode
            {
                ColumnName = raw.ColumnName,
                Property = raw.Property,
                Table = this,
            };

            return property;
        }