We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da5cc81 commit 032d461Copy full SHA for 032d461
Zongsoft.Data/src/Common/DataImporterBase.cs
@@ -60,7 +60,8 @@ private static MemberCollection GetMembers(DataImportContext context)
60
else
61
GenerateMembersWithInfo(context, members);
62
63
- return members;
+ return members.Count > 0 ? members :
64
+ throw new DataOperationException($"The members of the import operation cannot be determined based on the specified '{context.ModelType}' type.");
65
66
static MemberInfo GetMemberInfo(Type type, string name) =>
67
(MemberInfo)type.GetProperty(name, BindingFlags.Public | BindingFlags.Instance) ??
0 commit comments