Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

The type or namespace name 'dbAppData_Context' does not exist

10.08.2018 (👁243)

 

Problem:

Occurs when updating the data model.

when updating the model at the WPF with an EF Entity Framework connection to a SQL Server database,

then it may be that the connection is taken over incorrectly as a data context.

 

#Error message:

The type or namespace name 'dbAppData_Context' does not exist in the namespace 'webrobot.Data' (are you missing an assembly reference?)

 

WPF with Entity Framework

 

Severity

Code

Description

File

Project

Line

Suppression State

Error

CS0234

The type or namespace name 'dbAppData_Context' does not exist in the namespace 'webrobot.Data' (are you missing an assembly reference?)

D:\Programmierung\Web\Freelance\_Robots\20180810_robot_Hays\robot\_app\api.cs

robot

185

N/A

 

 

 

 

Solution:

You have to correct the context by name in the * .Context.cs file of the application

In this case:

public partial class dbContext : DbContext

{

    public dbContext()

        : base("name=dbContext")

    {

    }

 

On:

public partial class dbAppData_Context : DbContext

{

    public dbAppData_Context()

        : base("name=dbContext")

    {

    }

 

 

After the change

 

 

The problem can occur when updating the data model from within the designer