The problem with the 'name' argument in EF, WinForms
System.ArgumentException: 'The argument 'name' cannot be null, empty or contain only white space.'
Let me know, if you need any additional information.
6 Replies
FYI, if you only need the
FullName
, a better query would be
Seems the exception happens somewhere else? I don't see anything have a name
argument anywhere hereException happens with any of my DbSet objects, but only in this Presentater (I use MVP).
Could it be that some of the database models you have have non-default constructors?
It seems, that I've found the error, thank you for feedback, you're kind
Ah, yeah, that would do it
@vitaliiklimenko adding onto this, your EF models shouldn’t have constructors at all.