Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ public string FormatValue(object entity, string propertyName, object currentValu
{
if (EntityValueFormatters.Count > 0)
{
#if EF5 || EF6
var type = ObjectContext.GetObjectType(entity.GetType());
#elif EFCORE
var type = entity.GetType();
#endif
var key = string.Concat(type.FullName, ";", propertyName);
Func<object, object> formatter;

Expand Down Expand Up @@ -69,4 +73,4 @@ public string FormatValue(object entity, string propertyName, object currentValu
return currentValue != null && currentValue != DBNull.Value ? currentValue.ToString() : null;
}
}
}
}