-3

Visual Studio Errors

How can I solve the problem in the picture?

DavidG
  • 113,891
  • 12
  • 217
  • 223

1 Answers1

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