I'm trying to add and remove a prefix to a GUID on each request to my service.
Something like this
modelBuilder.Entity<MyEntity>()
.Property(e => e.Id)
.HasConversion(
v => PrefixConstant + v,
v => Guid.Parse(v.Substring(PrefixConstant.Length)));
Where PrefixConstant is just a string holding something like "ABC_". The idea is to store the id as a GUID, but return it with a prefix to the client.
The above hasn't been working too well with an error of id is of type uuid but expression is of type text