How can I solve the problem in the picture?
Asked
Active
Viewed 60 times
-3
-
1You are missing braces in the constructor, your first error message tells you that. – DavidG Oct 29 '15 at 10:48
-
6Also, please post code, not images of code. – DavidG Oct 29 '15 at 10:48
1 Answers
1
You are missing braces in the constructor, your first error message tells you that. Change it to:
public UniContext() : base("UniContext") { }
Secondly it looks like all of your model classes are scoped to be internal to the project but you are trying to make the context public. So you are trying to expose objects that are internal. Change the context to be internal
or private
or make the models `public.

DavidG
- 113,891
- 12
- 217
- 223