✅ MongoDB Driver error when reading using interface
Hi guys, I'm having trouble trying to read from my mongodb database, I used to use one class, but now it is one interface and other classes that can have more properties than the interface.
On my repository I'm reading using the
On my repository I'm reading using the
IAccount interface and on my code whenever I need I eventually cast to CreditCard or DebitCard, but it is giving me this error: Error during MainService.Domain.Interfaces.IAccount GetAsync: Unable to determine actual type of object to deserialize for interface type MainService.Domain.Interfaces.IAccount.