-
Notifications
You must be signed in to change notification settings - Fork 890
Open
Description
现象:
System.MissingMethodException: No parameterless constructor defined for type 'Test.User'.
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at FreeSql.Internal.Utils.GetTableByEntity(Type entity, CommonUtils common)
出处:
https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Internal/UtilsExpressionTree.cs#L22
修改:将 Activator.CreateInstance(entity)
改为 Activator.CreateInstance(entity, true)
Metadata
Metadata
Assignees
Labels
No labels