What Changed
In XPO-based applications that don't use the Security System, the static SecuritySystem.CurrentUserId property returns null
instead of an empty string.
Reasons for Change
This change allows you to avoid InvalidCastException and SqlExecutionErrorException when you use the CurrentUserId() operator in XPO-based applications that do not use the Security System. The following breaking change explains why XPO raised these exceptions in this scenario: XPO may throw InvalidCastException or SqlExecutionErrorException if parameter types (for update/read queries) do not match database column types.
Impact on Existing Apps
Change an empty string to the null
value in code where you compare the static SecuritySystem.CurrentUserId property value with an empty string.