Пример #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;
        }