I have a RAW method for an entity that has GUIDS as parameters.
LOADONE (Guid CwObjectGuid, Guid CountryGuid) RAW
With the corresponding body:
SELECT * FROM dbo.Bid
WHERE Bid_CwObject_Guid = @CwObjectGuid
AND ((Bid_CountryGuid = @CountryGuid) OR (@CountryGuid = '00000000-0000-0000-0000-000000000000' AND Bid_CountryGuid IS NULL))
The parameter CountryGuid
can be a default Guid. However, the method that is generated checks whether the parameter is a default. In that case the method will return NULL
.
if ((countryGuid.Equals(CodeFluentPersistence.DefaultGuidValue) == true))
{
return null;
}
I don't want that check. Can I somehow prevent it?