How can I add multiple conditions in a LINQ Select to return values based on an enum?
I’m working on a LINQ query where I need to select values from a data source based on the value of an enum (ConversationRole). I want to return different user IDs based on whether the ConversationRole is Sender or Receiver.
Mapping Functions EF Core to SQL
I’m looking for a more efficient way to grab my objects from the database and map them DTOs while using reusable methods.