You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quickstart states that The only assumption is that you'll provide an "Id" property which is a string (though it doesn't have to be a string).
Unfortunately, there is not yet full support for IDs of other types. I tried adding support to Nevermore by changing string casts and parameters to object, but ran into problems with method overload resolution, so I'm not certain if that's the right way.
Problem 1 .Load methods only accept string. Therefore, to load entities of other types, one needs to work around by using .Query
Quickstart states that
The only assumption is that you'll provide an "Id" property which is a string (though it doesn't have to be a string).
Unfortunately, there is not yet full support for IDs of other types. I tried adding support to Nevermore by changing string casts and parameters to object, but ran into problems with method overload resolution, so I'm not certain if that's the right way.
Problem 1
.Load
methods only accept string. Therefore, to load entities of other types, one needs to work around by using.Query
Problem 2
Insert
fails because Id column is cast to string.https://github.com/OctopusDeploy/Nevermore/blob/master/source/Nevermore/Util/DataModificationQueryBuilder.cs#L246
Workaround: use a property handler for ID column that casts to string on
Read
Would be great if Nevermore could handle it. I can submit WIP PR if you want, and you can point me into right direction.
Use case is using Nevermore as MassTransit Saga repository, which uses GUIDs as correlation id.
The text was updated successfully, but these errors were encountered: