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
// foreign key
var parameter0 = parameterBuilder.AppendParameter<System.Guid>((document is Document ? ((Document)document).SomethingElseId : default(System.Guid)));
// own id
var parameter3 = parameterBuilder.AppendParameter<System.Guid>((document is Document ? ((Document)document).Id.Value : default(System.Guid)));
which causes a CS1503Argument type 'conditional expression' is not assignable to parameter type 'System.Guid'
Workaround:
Use GUIDs for foreign keys until fixed
@MeikelLP There's absolutely nothing in the documentation that would suggest that what you just tried would work. I bleeping hate how much work all this strong typed identifier crap has caused us.
"I take pull requests" here.
And if you did actually expect someone to fix this for you, you need to add a bit more detail about what exactly you tried to do. Better repro code == quicker fixes.
Activity
jeremydmiller commentedon Oct 15, 2025
@MeikelLP There's absolutely nothing in the documentation that would suggest that what you just tried would work. I bleeping hate how much work all this strong typed identifier crap has caused us.
"I take pull requests" here.
And if you did actually expect someone to fix this for you, you need to add a bit more detail about what exactly you tried to do. Better repro code == quicker fixes.