37 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
50
views
The sender tries to consume the recovered message instead of the consumer
I have two applications: one acts as the publisher and the other as the consumer. I’m using Wolverine with PostgreSQL as the message broker. Everything works correctly — the publisher sends messages, ...
0
votes
0
answers
65
views
Implementation of IMemberSource in Marten for simple type
I have an object like this (simplified)
public class Root {
public ReferenceNumber Ref { get; set; }
}
public readonly record struct ReferenceNumber
{
private readonly string _referenceNumber;...
1
vote
0
answers
146
views
How should I be using the Marten MultiStreamProjection?
I am trying to use a MultiStreamProjection (Marten), but the results of my query is null.
I must have a logic error somewhere, or I misunderstand how I am supposed to implement it.
var connString = &...
0
votes
0
answers
61
views
How to do async integration event to domain event translation in MartenDb
So I have integration events from outside my system that I consume with competing consumers and store in event streams with MartenDB.
I am trying to grab these events in batches and grab the current ...
0
votes
0
answers
91
views
Unable to Load related Entities/Documents Successfully in Marten
This seems like a simple problem but I have been having a challenge loading a document via the entity with related document with Marten documentDB on postgres for the past 2 days. I'm also using the ...
0
votes
1
answer
190
views
Tables aren't auto-creating in PgAdmin 4 and migrations aren't happening. Any advice?
I'm using Marten with PostgreSQL in an ASP.NET Core application. I've configured Marten with AutoCreate.All to auto-create schemas, but tables aren't being created on first connection. Here's my ...
0
votes
1
answer
1k
views
MartenDB serializer issue
Recently moved to latest version of MartenDB 6.4.0 and have started seeing the below error when attempting to query the postgres database for a list of stream events
Code
await _querySession.Events....
0
votes
1
answer
422
views
Appending events to Marten from an outbox and guarantee ordering
We are currently investigating how to implement Marten as an event store for our monolith application. For simplicity the scenario is scoped to this:
One monolith application that:
Stores events in ...
0
votes
1
answer
298
views
AggregateProjection cannot support aggregates that are soft-deleted
I am trying to activate snapShot and soft delete for an aggregate in marten db. and when I run the the project I get a run time error saying : 'AggregateProjection cannot support aggregates that are ...
0
votes
1
answer
277
views
Marten - using sequences - add new sequence fails on 2nd run
I tried to add a new "custom" sequence to my Marten DB to get a user ID for new users (during registration).
builder.Services.AddMarten(o =>
{
o.Connection(builder.Configuration....
1
vote
0
answers
389
views
Using MartenDB for Eventsourcing with Azure Postgres database
We're trying to configure Marten as our EventStore using a Postgres database in Azure. We've provisioned a Azure Database for PostgreSQL single server in Azure.
Ideally we would like Marten to create ...
2
votes
2
answers
787
views
Mock setup for Marten.IDocumentSession (Moq/Nunit)
I am trying to mock this statement:
IReadOnlyList<Student> students = await _session
.Query<Student>()
.Where(x => x.ClassId == classId)
.ToListAsync(cancellationToken);
My ...
1
vote
1
answer
212
views
MartenDB: Unsupported operator 'Coalesce' in a field member expression (Parameter 'node')
.NET7
After upgrading Marten from 4 to 5.11, this code leads to an exception:
storeOptions.Schema.For<UserSession>()
.Identity(x => x.Key)
.Duplicate(x => x.SessionId ?? "&...
1
vote
1
answer
1k
views
How can I write an integration test for Marten (on top of PostgreSQL) that includes asynchronous projections in an asp.net context?
I'm looking for a way to test functionality written using Marten. Not just as a unit test, but where integration with asp.net API's and actual saving to the database is tested. Moreover, I want to ...
0
votes
1
answer
365
views
Switching to MassTransit.Marten, sagas not deleting on completion
I'm implementing a saga for the first time and I have been testing it with an InMemory repository until today, when I switched to using Marten/Postgres.
I found that expiry events that set the state ...