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
After upgrading the NuGet package System.Linq.Dynamic.Core to version 1.2.20, accessing properties of dynamic results by index, i.e. using variable["index"] fails with NullReferenceException. Direct access by property name works, i.e. variable.index.
var dc = new DataContext(_connectionString, _xmlMappingSource) {ObjectTrackingEnabled = false};
var listManagementListRowTable = dc.GetTable(_listManagementListRowType);
var element = listManagementListRowTable.AsNoTracking().Where("ListManagementListRowId == @0", listManagementListRowId).FirstOrDefault();
var isDeleted = (bool) element["IsDeleted"];
The exception occurs on the last line.
Using var isDeleted = (bool) element.IsDeleted; instead works.
4. Any further technical details
After downgrading to 1.2.19 our app is working again.
The text was updated successfully, but these errors were encountered:
1. Description
After upgrading the NuGet package System.Linq.Dynamic.Core to version 1.2.20, accessing properties of dynamic results by index, i.e. using
variable["index"]
fails with NullReferenceException. Direct access by property name works, i.e.variable.index
.2. Exception
3. Fiddle or Project
Our code looks like
The exception occurs on the last line.
Using
var isDeleted = (bool) element.IsDeleted;
instead works.4. Any further technical details
After downgrading to 1.2.19 our app is working again.
The text was updated successfully, but these errors were encountered: