Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

 

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

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de