Ejemplo n.º 1
0
        private IFluentEntityOrderBy <T> AddOrderBy <TKey>(Expression <Func <T, TKey> > key, string order)
        {
            if (!_isFirstOrder)
            {
                _orderCommandBuilder.Append(" ,");
            }
            _isFirstOrder = false;

            _orderCommandBuilder.Append($" {FluentEntityAdoHelper.GetColumnPropertyNameQualified(key)} {order}");
            return(this);
        }
Ejemplo n.º 2
0
 private void AddWhereCondition <TKey>(Expression <Func <T, TKey> > key, string keyWord)
 {
     _commandBuilder.Append($" {keyWord} {FluentEntityAdoHelper.GetColumnPropertyNameQualified(key)}");
 }