We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d607199 commit 96915caCopy full SHA for 96915ca
SQLite.CodeFirst/Extensions/EntityTypeExtension.cs
@@ -24,7 +24,8 @@ public static string GetTableName(this EntityType entityType)
24
Type metadataPropertyValueType = metadataProperty.Value.GetType();
25
26
// The type DatabaseName is internal. So we need reflection...
27
- var name = (string)metadataPropertyValueType.GetProperty("Name").GetValue(metadataPropertyValue);
+ // GetValue() overload with one value was introduces in .net 4.5 so use the overload with two parameters.
28
+ var name = (string)metadataPropertyValueType.GetProperty("Name").GetValue(metadataPropertyValue, null);
29
30
return TableNameCreator.CreateTableName(name);
31
}
0 commit comments