Exemplo n.º 1
0
        public LambdaQueryHelper <TEntity> LambdaQuery <TEntity>(IDbTransaction transaction = null, int?commandTimeout = null) where TEntity : class
        {
            DbConnObj ConnObj = GetConnObj(transaction);

            if (ConnObj.DbConnection != null)
            {
                return(ConnObj.DbConnection.LambdaQuery <TEntity>(transaction, commandTimeout));
            }
            else
            {
                return(DapperExtension.LambdaQuery <TEntity>(ConnKey, commandTimeout));
            }
        }