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

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