Questions tagged as 'entity-framework'

1
answer

Version of MySql.Data.Entity compatible with MySql 5.6

What are the versions of: MySql.Data MySql.Data.Entity EF Compatible with version 5.6 of MySql?     
asked by 24.07.2015 / 06:02
1
answer

Property of a class that belongs to another context in the Entity Framework

I have a class called Locker that has the following property: public virtual ICollection<LockerReserve> Reserves { get; set; } The problem is that LockerReserve belongs to a context other than Locker. An exception is thrown whenever I...
asked by 30.11.2015 / 13:29
1
answer

How to insert values into a relational table when inserting a row and get this ID?

I am building a program to insert excel file data into a database. My database has this structure: Tables (and fields): Schedule ( PK ), StartTime, EndTime, DayWeek, RoomId ( FK ), ClassId < FK ), TeacherId ( FK )) Rooms (RoomId ( PK...
asked by 29.03.2015 / 04:20
1
answer

Display a button based on the action of another

I'm a beginner in ASP.NET MVC I have a project. And within a given view I have two buttons. However, one of them can only appear if the other is executed. 1 > Save (save car) 2 > Associate a dealership (it can only be activated wh...
asked by 17.10.2015 / 22:38
1
answer

OR join using Linq

I have the following tables: Tabela1 Tabela2 Tabela3 Tabela4 +----+-----------+ +----+-----------+------+------+ +----+-----------+------+------+ +----+-...
asked by 14.10.2015 / 13:47
1
answer

Exception when generating Controller with Entity Framework

In my application using Asp.net mvc , with Entity Framework 6 , with Mysql , when trying to add the Controllers , Views , using EF , I get the following error: Myweb.configSettings:<connectionStrings><addname="MyEntities" conne...
asked by 08.08.2015 / 21:59
2
answers

C # MVC5 - Insert Fields with 4 Decimal Digits

I'm doing an insert into the database (SQL Server 2008) of a field set to 'decimal (10,4)', of which I try to insert / edit, through my C # application MVC5, a field of my model type 'decimal'. The fact is that when I debug the code, even bef...
asked by 09.07.2015 / 22:08
1
answer

How to improve the performance of a foreach

I'm consuming a webservice , which has at least 5557 records. The problem is after consuming. I have to add the records in my database, and for that, I have to make a foreach , which ends up hindering the performance a litt...
asked by 22.12.2014 / 17:09
1
answer

Migration Conventions

I have an MVC application in DDD that uses SQLServer. I'm looking to take the database to PostGresSQL, but an FK duplicity error occurs. For example, in the SqlServer pattern would be generated: FK_dbo.Adicao_dbo.OrgaoEmissorAtoLegal_ExT...
asked by 05.10.2018 / 21:19