Microsoft Q&A

Entity Framework 6.0

216 questions

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

Browse all .NET tags

216 questions with Entity Framework 6.0 tags

Sort by: Updated
0 answers

Bilgisayarıma .net 7.0 kurdum fakat powershell üzerinden dotnet tool install --global dotnet-ef komutu kullandığım zaman kurulu değil hatası alıyorum yardımcı olur musunuz

Visual Studio 2019 kullanıyorum ancak bu kurulumu yapamadım yardımcı olursanız sevinirim

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
598 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-24T18:58:06.7566667+00:00
Muhammed Mustafa 0 Reputation points
commented 2023-01-25T01:19:12.0633333+00:00
Jack J Jun 19,036 Reputation points Microsoft Employee
4 answers

Porting Entity Framework 6 to Entity Framework Core

I am porting an application from ASP.net MVC 5 to ASP.net Core MVC and I reach out in the area pointing the Entity Framework related modules. I have the generated classes and I also have the edmx and tt files, I added the files to a newly created Class…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,528 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
581 questions
asked 2023-01-20T16:28:32.4533333+00:00
cebuhax0r 21 Reputation points
answered 2023-01-22T14:35:37.99+00:00
Karen Payne MVP 29,131 Reputation points Microsoft MVP
0 answers

New optional Foreign Key triggers Exception when querying

Hello there! I ran into an issue that I don't understand, therefore here I am. Here is my model: public class Property : FullAuditedEntity<Guid>, IMayHaveTenant { public int? TenantId { get; set; } …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-08T19:13:12.307+00:00
Julien CHEVREAU 1 Reputation point
commented 2023-01-19T07:43:30.4066667+00:00
Jack J Jun 19,036 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project

Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project FrameWork= .:Net 7.0 Please help. Thanks not as below

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
581 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
598 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,391 questions
asked 2023-01-17T06:10:50.91+00:00
umutins umut 20 Reputation points
accepted 2023-01-17T10:41:40.45+00:00
umutins umut 20 Reputation points
3 answers One of the answers was accepted by the question author.

Build Update Query CommandText in foreach loop for bulksave to DB

Build Update Query CommandText in foreach loop for bulksave to DB foreach (var item in items) { item.Locked = IsLocked; …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
8,470 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.
6,917 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,170 questions
asked 2022-12-24T06:59:50.93+00:00
IDGO 426 Reputation points
commented 2022-12-25T16:43:14.457+00:00
IDGO 426 Reputation points
2 answers One of the answers was accepted by the question author.

c# Performance Issue while saving to DB

foreach (DictionaryEntry ID in IDs) { int qWorkID = int.Parse(ID.Value.ToString()); int SplitID = Convert.ToInt32(ID.Key.ToString()); var INSP = (from insp in Model.InstallSplitSet …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
asked 2022-12-20T18:33:42.537+00:00
IDGO 426 Reputation points
commented 2022-12-24T05:07:04.03+00:00
IDGO 426 Reputation points
5 answers One of the answers was accepted by the question author.

Linq query causing performance Issue

foreach (DictionaryEntry ID in IDs) { int qWorkID = int.Parse(ID.Value.ToString()); var QWF = (from qwf in Model.QWorkflowSet where qwf.QWorkID == qWorkID select qwf).FirstOrDefault(); …

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,170 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
581 questions
asked 2022-12-21T16:08:24.55+00:00
IDGO 426 Reputation points
commented 2022-12-23T17:52:52.083+00:00
IDGO 426 Reputation points
1 answer

How to get sub level data using ef core?

here is my table: public class Depart { public int Id{get;set;} public int TopDepartId{get;set;}// top level depart id public int DepartName{get;set;} } I want to get depart's all sub departs if there is depart{Id=1} and…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2022-12-16T04:18:11.363+00:00
打玻璃 1,446 Reputation points
commented 2022-12-22T08:19:46.027+00:00
Lei Zhang-MSFT 6 Reputation points Microsoft Employee
2 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.
216 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,391 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,476 questions
asked 2022-12-21T20:50:33.62+00:00
Larry Axon 1 Reputation point
commented 2022-12-22T05:34:56.987+00:00
Jack J Jun 19,036 Reputation points Microsoft Employee
0 answers

Inheritance Table-per-type can't finde method UseTptMappingStrategy()

Ef core version 7.0.1 as mentioned in the documentation there is two way to implement tbt https://learn.microsoft.com/en-us/ef/core/modeling/inheritance#table-per-type-configuration and that is what I did that works fine but if…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
asked 2022-12-17T21:55:49.02+00:00
Kareem Azam 1 Reputation point
commented 2022-12-19T03:07:36.693+00:00
Lei Zhang-MSFT 6 Reputation points Microsoft Employee
2 answers

Database design suggestion

Hi there, I have an ASP.NET web API application and am trying to upgrade it to Core. I am using EF 6, code first. I have this entity but the requirements changed. Now I have more than one price and currency for a product. How can I design the…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
8,470 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
143 questions
asked 2022-11-20T17:32:34.617+00:00
Cenk 666 Reputation points
commented 2022-12-15T18:41:27.673+00:00
Bruce (SqlWork.com) 27,936 Reputation points
0 answers

Possible Bug in Entity Framework

Link of bug description... CREATE TABLE IF NOT EXISTS users ( UserId int auto_increment, RegisterId int, PRIMARY KEY(UserId) ); CREATE TABLE IF NOT EXISTS products ( ProductId int auto_increment, ProductName…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
asked 2022-12-09T22:39:49.477+00:00
cinfis 1 Reputation point
commented 2022-12-14T09:24:03.817+00:00
Lei Zhang-MSFT 6 Reputation points Microsoft Employee
1 answer

DbGeometry instances created with wrong SRID

The method below is supposed to create an instance of DbGeometry that reflects the input SqlGeometry. My application and the data behind it work solely with SRID 102605 (this is a custom projection), but all of the static creational methods on the…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
8,470 questions
asked 2022-08-25T15:30:52.667+00:00
Dan Narsavage 1 Reputation point
answered 2022-12-09T21:32:15.093+00:00
Dan Narsavage 1 Reputation point
0 answers

Slowness in entityframework query

Hi I am facing slowness issue when retrieve data via entityframework 6. It query a table, with return 20 records only. The SQL statement is fast, completed within sec However, when I use EF code as below, it takes 11-15 secs. public class…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
asked 2022-12-07T01:23:15.81+00:00
Chan Kok Kiet 1 Reputation point
commented 2022-12-07T08:07:18.463+00:00
Jack J Jun 19,036 Reputation points Microsoft Employee
1 answer

Update changes using Repository pattern with no Update command

Hoping someone could get me back on track here. Im going through a tutorial to introduce the Repository pattern with Entity Framework 6. So far its all been working in my project. One of the comments made by the author is there is no need to have an…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
asked 2022-03-12T12:32:23.403+00:00
Mr Edge 121 Reputation points
commented 2022-11-24T08:18:16.8+00:00
Buddhika 1 Reputation point
2 answers

Framework rules and guideliness

Hi all what are the rules and Guideliness for .NET framework we should follow for creating the application

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
954 questions
asked 2022-11-03T17:20:18.127+00:00
Siddangoud Bharamagoudar 21 Reputation points
commented 2022-11-23T07:10:56.48+00:00
Jiachen Li-MSFT 10,831 Reputation points Microsoft Employee
1 answer

Microsoft dotnet ef migration error

When I run any dotnet ef command, like "dotnet ef migrations add InitialCreate", i get the following error message: Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
asked 2022-11-17T16:11:22.873+00:00
Kefiloe Moshoaliba 1 Reputation point
answered 2022-11-17T18:17:14.943+00:00
Michael Taylor 37,441 Reputation points
0 answers

UserManager.RemoveFromRolesAsync and UserManager.IsInRoleAsyn return user not in role

I have a small project generated using vscode and dot net 7 core focused on Identity operations. -- dotnet core project under parallels windows 11 on an M1 max macbook -- Docker container running azure edge with a database simply for testing…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,528 questions
Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
342 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
482 questions
asked 2022-11-16T19:02:13.257+00:00
York Bush 1 Reputation point
commented 2022-11-17T09:23:50.207+00:00
Rena Ni - MSFT 1,526 Reputation points Microsoft Employee
3 answers

Configure OnModelCreating function in context file

I have one patient table and one appointment table. In appointment table i am keeping Patient id. Here my question is how configure in OnModelCreating function in context file. My requirement is if i pass one date i want to list all patient have…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
asked 2022-11-14T05:13:41.953+00:00
Binumon George 161 Reputation points
answered 2022-11-14T17:47:25.803+00:00
Arun Siripuram 586 Reputation points
0 answers

ORA-12704: character set mismatch with update statement

I'm using Oracle.ManagedDataAccess.Client to make queries to oracle database, but having an issue in update query. I tried different workarounds like CAST with NVARCHAR2 and wrote DBInterceptor by following this POST. But none of them are…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 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.
6,917 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
581 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
598 questions
asked 2022-10-11T12:06:51.507+00:00
Saud Khan 26 Reputation points
commented 2022-11-13T11:46:38.193+00:00
Ken Tucker 5,796 Reputation points