entity-framework tag

8 questions


2 answers
119 views
0
DB Connection Entity Frame in ASP.net Core MVC or ODP.net

We are creating a web API using the ASP.net Core MVC model.So I would like to connect to the database and issue SQL and execute procedures.Until now, I have used ODP.net to attach a connection to the ...


2 answers
155 views
0
Accessing DbContext Directly without WebAPI in ASP.NET Core 3.0

I am currently studying how to build a web server using ASP.NET Core 3.0 and Blazor. After searching for online tutorials, we found a way to access databases such as SQL Server using WebAPI using the ...


1 answers
177 views
0
I would like to know why and how to deal with the migration exception in EntityFramework 6.3

Environment: VisualStudio 2017 .NetFramework 4.6.1 SQLite EntityFramework 6.3 The following exceptions occur while Migtaion interprets the DB Model created with code first in EntityFramework 6.3:I loo...


2 answers
109 views
0
What is the validity of the SQL Server index when using EntityFramework?

This is the first development in the Entity Framework 6, ASP.NET (MVC) project (C#).DB is the Azure SQL database.We created a non-clustered index on age because the ID is the primary key and the membe...


2 answers
94 views
0
If you save a Decimal value to SQLServer, it will only save up to two decimal places.

EntityFramework Version=6.0.0.0.Net Framework targetFramework=4.6.1SQL Server Express 13.0.4001.0In the table on SQL Server, there is a column created with Decimal (12,3) and Decimal (18,3) that is be...


1 answers
70 views
0
Does the Table attribute not work in Entity Framework Core 1.1?

If the table name of the DB already exists is mytable, I attribute it as follows, but it doesn't recognize it.What should I do?Hoge.cs [Table(mytable)]public class Hoge {...}MyDbContext.cs public clas...

2 years ago

1 answers
80 views
0
EntityFramework: How do I issue an auto-increment ID other than `SaveChanges()`?

Data from self-made SRPG games are stored in the database under the Entity Framework Code-First.The tables include Character, Item, Weapon, Equipment, and so on.I was able to implement it normally, bu...

2 years ago

1 answers
100 views
0
I want to receive the stored procedure OUTPUT Parameter

I am developing an API with Visual Studio 2013 c#.I'm going to use StoredProcedure to select the data in the table.I don't know how to get the retrieved data with C# code.I am using ObjectParameter, b...


© 2024 OneMinuteCode. All rights reserved.