DbColumnSyntax(ColumnInfo col, bool columnOnly, string front, string back)
 {
     _col = col;
     _front = front;
     _back = back;
     _columnOnly = columnOnly;
 }
Esempio n. 2
0
        internal void Add(ColumnInfo col)
        {
            _lambdaNameAndColumn.Add(col.LambdaFullName, col);

            var sep = col.LambdaFullName.Split('.');
            var tableLambda = string.Join(".", sep.Take(sep.Length - 1).ToArray());
            if (!_lambdaNameAndTable.ContainsKey(tableLambda))
            {
                sep = col.SqlFullName.Split('.');
                var tableSql = string.Join(".", sep.Take(sep.Length - 1).ToArray());
                _lambdaNameAndTable.Add(tableLambda, new TableInfo(tableLambda, tableSql));
            }
        }
 internal DbColumnSyntax(ColumnInfo col, bool columnOnly)
 {
     _col = col;
     _columnOnly = columnOnly;
 }
 internal DbColumnSyntax(ColumnInfo col)
 {
     _col = col;
 }
Esempio n. 5
0
 internal bool TryGetColumn(string name, out ColumnInfo col)
 => _lambdaNameAndColumn.TryGetValue(name, out col);
Esempio n. 6
0
 internal bool TryGetColumn(string name, out ColumnInfo col)
     => _lambdaNameAndColumn.TryGetValue(name, out col);