If both types used in a Marten LINQ .Include() query are configured to use soft deletes, running an .Include() query will result in this exception:
[PostgresException (0x80004005): 42702: column reference "mt_deleted" is ambiguous]
It looks like the where clause to handle soft deletes is not scoped properly as d.mt_deleted. Instead, you get where (mt_deleted = False) in the generated command, causing the ambiguous table reference.
If both types used in a Marten LINQ .Include() query are configured to use soft deletes, running an .Include() query will result in this exception:
[PostgresException (0x80004005): 42702: column reference "mt_deleted" is ambiguous]
It looks like the where clause to handle soft deletes is not scoped properly as
d.mt_deleted. Instead, you getwhere (mt_deleted = False)in the generated command, causing the ambiguous table reference.