コード例 #1
0
ファイル: SelectClause.cs プロジェクト: renefc3/nhibernate
        private void InitializeColumnNames()
        {
            // Generate an 2d array of column names, the first dimension is parallel with the
            // return types array.  The second dimension is the list of column names for each
            // type.

            // todo: we should really just collect these from the various SelectExpressions, rather than regenerating here
            _columnNames = SessionFactoryHelper.GenerateColumnNames(_queryReturnTypes);
        }
コード例 #2
0
ファイル: SelectClause.cs プロジェクト: jrauber/GH1429
        private void InitializeColumnNames()
        {
            // Generate an 2d array of column names, the first dimension is parallel with the
            // return types array.  The second dimension is the list of column names for each
            // type.

            // todo: we should really just collect these from the various SelectExpressions, rather than regenerating here
            _columnNames = SessionFactoryHelper.GenerateColumnNames(_queryReturnTypes);
            _columnNamesStartPositions = new int[_columnNames.Length];
            int startPosition = 1;

            for (int i = 0; i < _columnNames.Length; i++)
            {
                _columnNamesStartPositions[i] = startPosition;
                startPosition += _columnNames[i].Length;
            }
        }