Microsoft Q&A

Entity Framework 6.0

256 questions

A Microsoft open-source object-database mapper for .NET.

Browse all .NET tags

256 questions with Entity Framework 6.0 tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

PMC EF commands error: Unrecognized command or argument 'C#'

In Visual Studio's Package Manager Console (V 6.6.0.61), the command get-migrations, and other Entity Framework commands, output: Specify --help for a list of available options and commands. Unrecognized command or argument 'C#' I have successfully run…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
967 questions
asked 2023-08-16T14:19:06.76+00:00
Nnr 30 Reputation points
edited a comment 2023-08-28T06:18:50.0933333+00:00
Erno Soinila 0 Reputation points
1 answer

GraphQL API - Fetch data from more than one table

Hi, I want to write an .net core graph ql api(using hot chocolate), which will return the data from db(one or more tables). They are independant tables. Say I want to retrieve data from employees, and offices. There is no relationship between these 2…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,499 questions
asked 2023-08-17T08:09:24.0033333+00:00
Santhi Dhanuskodi 40 Reputation points
answered 2023-08-26T17:54:07.96+00:00
Johan Smarius 155 Reputation points
0 answers

.net program poor performance on windows 2019 server

Hello, We have a problem with a small program running well on a Windows 2012R2 but not on a Windows 2019. We did a small program for test just connecting to a sql database with entity framework 6.4.4 and making a count(*) on a table. It takes 3s on…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
asked 2021-09-14T15:21:35.993+00:00
François Blottière 1 Reputation point
commented 2023-08-21T12:47:18.56+00:00
Grant Collingwood 0 Reputation points
0 answers

Using ADO.NET Entity Framework with MySql Data Provider

I'm going to start an ASP.NET Web Application project that uses the MySql database. I also need to create an ADO.NET Entity Data Model. I know I need to install "MySql for Visual Studio Tool" and "MySql Connector/NET". I have…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,616 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
967 questions
asked 2023-06-23T12:21:49.4933333+00:00
Barish 0 Reputation points
commented 2023-08-21T06:02:53.06+00:00
Barish 0 Reputation points
2 answers

How to convert SQL query values separated comma to list by using entity framework core 7?

I work on asp.net core razor page . I face issue How to convert complicated sql query to entity framework core 7 Exactly I need to convert this SQL statement to LINQ to entity without write SQL statement on csharp meaning i need to use code first entity…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
574 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,499 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,616 questions
asked 2023-08-02T17:04:27.8+00:00
Ahmed Abd El Aziz 245 Reputation points
commented 2023-08-15T01:07:18.0033333+00:00
Zhi Lv - MSFT 27,736 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How To create a framework

How to create the framework in C# with Example

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
asked 2023-08-10T12:35:48.8366667+00:00
Siddangoud Bharamagoudar 61 Reputation points
commented 2023-08-14T08:31:08.65+00:00
Jiale Xue - MSFT 8,931 Reputation points Microsoft Vendor
7 answers

What's the best (and simplest way) to MOVE an SQL Server database file?

WHAT I HAVE: Visual Basic 2019, WinForms, .NET Framework 4.0+, Entity Framework 6.0+, SQL Server MY ISSUE: I'm writing a desktop app that uses Entity Framework to manage multiple databases (with user-specified catalog-name/mdf-file-name combinations)…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,594 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
10,757 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,276 questions
asked 2023-08-11T01:24:54.11+00:00
Robert Gustafson 606 Reputation points
answered 2023-08-12T09:10:32.3566667+00:00
Erland Sommarskog 86,066 Reputation points
1 answer One of the answers was accepted by the question author.

Replace AzureSQL db with Synapse Datawarehouse with Partitioning/Sharding technique - Possibilities?

Hi, We have SAAS applications that uses Azure SQL as datastore and connects using EntityFramework. We are exploring Synapse datawarehouse to replace AzureSql. We have below questions that need some assistance. Can we able to connect to datawarehouse…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
3,474 questions
asked 2023-07-31T12:46:12.0833333+00:00
Gowtham Chittoor 20 Reputation points
accepted 2023-08-05T12:48:47.9333333+00:00
Gowtham Chittoor 20 Reputation points
2 answers

Server Error in '/' Application Error.

Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,952 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
967 questions
asked 2023-02-02T08:30:56.1066667+00:00
Taha Sözgen 10 Reputation points
commented 2023-07-24T06:45:40.87+00:00
Abdul Aziz 0 Reputation points
6 answers

VS 2022 Windows 11 ARM64 EF Diagram failes missing GraphObject DLL

I updated my machine to a MAC Studio M1 and am running parallels with Windows 11 ARM. I am using Visual Studio 2022. On the new machine everything works BUT in the DAO/EF class the EDMX won't load the diagram. Error says…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,693 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,759 questions
asked 2022-12-21T20:50:33.62+00:00
Larry Axon 26 Reputation points
answered 2023-07-21T03:59:40.7533333+00:00
Carlos Suarez 0 Reputation points
3 answers One of the answers was accepted by the question author.

resource cannot be found issue

I have an entity framework app I am rehabilitating. all the routes work just the one labeled details fails with the error below. Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
967 questions
asked 2021-08-23T04:15:26.3+00:00
rob m 251 Reputation points
commented 2023-07-18T06:00:21.82+00:00
RenWen 0 Reputation points
0 answers

EF 6.0 - may cause cycles or multiple cascade paths.

For a couple of days, I'm having this issue and I have no idea how to fix it. I have User and UserDetail models, from which I'm trying to set PK & FK. About the application, its Web Api on .Net 6.0 public class User { [Key] …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,833 questions
asked 2023-07-03T18:14:53.0366667+00:00
Maryan 21 Reputation points
commented 2023-07-04T19:18:08.75+00:00
Maryan 21 Reputation points
2 answers One of the answers was accepted by the question author.

MVC Entity Framework Random SQL Queries that don't map to db objects and may return multiple datasets.

ASP.NET (NOT CORE) MVC I'm storing a list of random queries in a table. NONE of the queries match any database object, like Customers, Orders, etc. Some queries may return more than one dataset. Some may be update or delete queries I need to…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
967 questions
asked 2023-07-01T04:39:36.7366667+00:00
Bryan Valencia 181 Reputation points
accepted 2023-07-01T19:25:01.3566667+00:00
Bryan Valencia 181 Reputation points
1 answer

Insufficient memory to continue the execution of the program for C# WPF

Project: I had Accounting project made in MS Access ADP 2003 project that connects to SQL Server database , Because it is not possible to create a beautiful and modern user interface with animation in Access, I decided to rewrite my program, I want to…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,457 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
10,757 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,833 questions
asked 2023-06-21T19:16:57.6866667+00:00
Mojtaba_Hakim 281 Reputation points
commented 2023-06-22T06:27:11.1366667+00:00
Hui Liu-MSFT 21,051 Reputation points Microsoft Vendor
3 answers

When Microsoft will release Entity Framework 6.x (.NET Full framework) having Microsoft.Data.SQLClient support?

We are migrating our .NET Full framework 4.8 based Data Access Layer projects from System.Data.SQLClient to Micosoft.Data.SQLClient. While it is very straightforward for AD0.NET based projects, we do have some projects where we are also using EF 6.0. As…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
asked 2023-06-05T07:36:18.9+00:00
Buch, Dishant 5 Reputation points
edited an answer 2023-06-20T08:20:19.07+00:00
Marks Pentris 0 Reputation points
0 answers

System.NullReferenceException message in creating Entity Data Model in an MVC project

Hi everyone, I created a localdb sql server file(School.mdf) in the App_Data folder in an MVC project using .Net Framework 4.8. I then added a table(Student) with only two attributes for testing. I tried to add new ADO .Net Entity Data Model into the…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
asked 2023-06-08T03:45:14.61+00:00
Andy Chiou 10 Reputation points
commented 2023-06-14T01:51:20.11+00:00
Hui Liu-MSFT 21,051 Reputation points Microsoft Vendor
1 answer

VB.NET Entity Framework Using multiple databases

I'm trying to setup Entity Framework 6 in my VB.Net desktop application. I can get it working fine using Production database, but, this is a program where you can login to either production or the test database. When I created the model, I set it up to…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,952 questions
asked 2023-06-09T15:41:14.4233333+00:00
Joseph Mancini 41 Reputation points
commented 2023-06-13T13:38:52.3833333+00:00
Joseph Mancini 41 Reputation points
0 answers

EF core 6 then Include issue

In EF core 3.1 I am able to include a collection of object using include statement. After that then include is not working in EF core 6 eg public class Parent { public int Id { get; set; } public string Name { get; set; } public…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,499 questions
asked 2023-05-30T12:00:28.49+00:00
Mohan Chanchal 0 Reputation points
commented 2023-05-31T05:29:05.9433333+00:00
Zhi Lv - MSFT 27,736 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Write Sql stored procedure with EF code first approach?

Hello. I am new with EF6 and I'm doing some tests with the ASP.NET MVC 5 and Code First. As a beginner, I’m confused. If I create model classes and then have the database (sqlserver) created by EF, can I then write stored procedures in the sqlserver…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
10,757 questions
asked 2023-05-22T14:32:42.6466667+00:00
preno 60 Reputation points
accepted 2023-05-22T17:34:33.59+00:00
preno 60 Reputation points
1 answer

Why Default Value of DataGridComboBoxColumn does not appear in the DataGrid in C# WPF?

Project subject: I had an MS Access 2003 adp VBA project that would connect to SQL Server Database, Now I'm converting that project to C# WPF, and I'm going to save data directly into SQL Server database from DataGrid in C# WPF Detail: I have DataGrid…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
256 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,457 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,693 questions
asked 2023-05-02T20:03:51.4133333+00:00
Mojtaba_Hakim 281 Reputation points
commented 2023-05-19T02:38:09.5633333+00:00
Hui Liu-MSFT 21,051 Reputation points Microsoft Vendor