entity-framework Questions
3
Solved
I am developing a CRM by .net core mvc and EF which needs a lot of DB connection to retrieve and update information. From time to time I face this error during debugging, this is a big project with...
Trifocal asked 27/3, 2021 at 10:57
5
Solved
I'm trying to create a EF 6.4 migration in my solution which has net472 projects and netstandard projects, and I'm getting the following error:
Project 'ESP.Console' targets framework '.NETStandar...
Incardination asked 2/7, 2020 at 18:5
2
Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime
has encountered a fatal error. The address of the error was at
0x641ad419, on thread 0x5d0c. The error code is 0xc0000005. Th...
Rejoinder asked 13/9, 2017 at 20:49
2
Solved
EF Core 5 has various events, but they relate to DbContext. There are no events related to migrations (Migration).
I want to run custom code after all migrations are applied - whether triggered by ...
Brownstone asked 11/12, 2021 at 4:53
4
I have a data call in a Linq to Entities powered data access layer that is designed to make paged calls.
In doing so, I need to select a subset of the data, say 50 rows, but also get the count of ...
Mosenthal asked 23/3, 2015 at 18:54
4
Unhandled Exception: PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier. Please either wait for it to be finished or finish it manue...
Disposed asked 19/7, 2022 at 4:30
3
I have multiple SQL server tables that are the same, but differ in content. In writing a code first EF6 program I am trying to reuse the same db context for each and pass in the table name to the c...
Landis asked 8/3, 2018 at 14:14
3
Solved
String or binary data would be truncated. The statement has been terminated.
System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated
Sectional asked 1/7, 2016 at 6:3
3
Solved
We have a database with multiple tables with Same structure
Table 1
Key ID ........
Table 2
Key ID .......
The number of tables can be dynamic based on configuration.
I am trying to upgrade t...
Posticous asked 14/7, 2016 at 11:10
2
Solved
I am trying to learn about Entity Framework 6, and I am running into an issue, that I have been able to reproduce in a test project:
A Movie has a Nameand a Revenue. A Revenue has a GrossIncome:
...
Denbighshire asked 7/2, 2019 at 16:49
2
Solved
When using a Database Initializer for Entity Framework 6 that creates a database when none exists with an Azure SQL server connection the Database created is created using the vCore pricing model. ...
Beira asked 30/10, 2019 at 15:33
2
I have an EF model with a notification emails property. The notification emails are saved in the database as string separated by ';'. I added a conversion to retrieve the data as a ICollection in t...
Mindi asked 13/5, 2019 at 8:58
3
In playing with EF Core 7 JSON Column I'm attempting to get to a point where my saved JSON would look like this:
{
"Courses": [
"123": {
"RemoteCourseId": 123,
&qu...
Dramatist asked 17/4, 2023 at 21:15
2
I had the following attribute property for my EF 6 .Net Framework app:
[AttributeUsage(AttributeTargets.Property)]
public sealed class DecimalPrecisionAttribute : Attribute
{
public DecimalPrec...
Sheffield asked 14/10, 2017 at 20:30
6
I have an EF6 solution that I would like to add a trigger on a table to log changes to a new table. This is due to an integration we are doing to an external database. Basically, they want a log of...
Groats asked 25/1, 2021 at 18:11
4
I'm trying to implement a caching scheme for my EF Repository similar to the one blogged here. As the author and commenters have reported the limitation is that the key generation method cannot pro...
Ousley asked 26/11, 2011 at 2:37
4
I am new in Entity framework core, I am making a simple short project. In my project I use trigger. But when deleting multiple items, the trigger shows an error :
"Invalid attempt to call Read...
Bellboy asked 8/10, 2017 at 4:57
3
Solved
What is the code-first approach to set the default value of a database column in entity framework core?
Attempt #1: Using the DefaultValue attribute on the model doesn't seem to work
[DefaultValue(...
Harwill asked 14/12, 2020 at 22:33
3
I have this code:
from pr in e.ProgramSetup.Include("Program").Include("Program.Client")
where pr.DateBegin < DateTime.Now
&& pr.DateEnd > DateTime.Now.AddDays(pr.DateEndOffset)
s...
Salomesalomi asked 1/10, 2012 at 13:0
2
With Entity Framework Core, I need to check the original values of a navigation property inside my entity but i can't find a way to do it.
I'm able to read the original and the current values of t...
Calendula asked 18/4, 2019 at 17:19
2
Solved
I have implemented an approach for tracing SQL queries from EF Core according to this article: https://learn.microsoft.com/en-us/ef/core/miscellaneous/logging. And have problems with tracing query ...
Ferrochromium asked 26/5, 2017 at 13:9
6
Solved
I want to search my db with different keys. According to the input, there may be 1 key to 10 keys. Is there a way to add OR/AND clauses to my Linq query dynamically?
keys[k] // I have my keys in ...
Hyperextension asked 14/1, 2013 at 14:10
10
Solved
I'm using EF and generated .EDMX from it but then I only wanted it to be used for automated generation of Class Files.
I then used the Class Files to create a Entity Model and then created a DB C...
Batish asked 6/5, 2015 at 18:35
3
Solved
I'm creating a new database with the model-first approach and I want to add a column to a table of the type System.Drawing.Color but I don't have this option in the properties list.
Is there a way...
Dispassion asked 15/7, 2014 at 10:22
6
This error occurs while trying to add-migration for the first time. I have added the extension method and my service class
public void ConfigureServices(IServiceCollection services)
{
services.Ad...
Laylalayman asked 15/7, 2020 at 3:2
1 Next >
© 2022 - 2025 — McMap. All rights reserved.