Questions tagged as 'entity-framework'

2
answers

Suggestion Migration System and modeling of individuals and legal entities in a system with Entity Framework

Well, the question is this. I have a database that has the purpose of making the cash book of a company, basically this bank has a CaixaCorrido table with columns Id , PessoaNome , DataHora , Descricao , Valor...
asked by 09.03.2016 / 15:23
1
answer

Inserting data EntityFramework C #

I have 3 Entity, where are Countries, States and Cities. I am doing the Crud of entity City, and when saving it is asking the relationship of States and Countries, but this I do not need, as I have a property called StateHandle in the entity Cit...
asked by 26.06.2017 / 19:42
0
answers

How to import into the code database tables with Entity Framework 6

In my project, I have only a few entities that are not connected to the database, but I run some procedures through EF6. These procs are just queries that bring data across information from more than one table. Now I want to insert entitie...
asked by 26.06.2017 / 21:47
0
answers

How to use subqueries with LINQ Entity Framework?

I need to write the following query in the Linq Entity Framework. I'm having difficulty in the subquery part, where I need to accumulate the quantity field. SELECT ppc.[PedidoCompraId] ,ppc.[EAN] ,ppc.[Preco] ,ppc.[Quantidade] ,ppc.[Un...
asked by 26.04.2017 / 20:19
1
answer

Add column to table (foreign key) using entity framework

I have a C # project on a relatively advanced level. My DB already contains some data for testing. I am using entity framework code first migrations I have the Users and Images tables. The images table has only the Id and ImagePath colu...
asked by 27.02.2017 / 01:36
0
answers

Query error using Entity Framework with MySQL and VB.net

I have developed a method to do with simple query indexed by the Changed event of textbox and the query returns the correct values the first time. When I change the value of the component and the query is requested again with a new code, the res...
asked by 27.07.2017 / 01:35
1
answer

Code First Migration Relationship and Insert?

I'm using UserManager to manage users, I'm using migration and I'm having relationship problem. It turns out that I have the Cliente entity: public class Cliente : IdentityUser { [NotMapped] public string Senha...
asked by 27.01.2017 / 11:53
1
answer

How to use an Oracle database and a Sql Server simultaneously with Entity Framework 6 in a single application?

I'm developing an application where information will be persisted in two databases, one MS SQL Server and one Oracle. I have no option to use the two banks in the same DBMS, because the Oracle database is from another application and another...
asked by 29.12.2016 / 13:09
0
answers

Mapping problems in Microsoft.EntityFrameworkCore

I'm trying to create two Mappings in ManyToOne using annotation of Entity Framework , however I'm not getting it, if I take either of the two mappings and leave the other, it works however if I leave both of the error. The project is being...
asked by 07.01.2017 / 10:34
0
answers

ASP.NET MVC + Checkbox how to proceed? [closed]

I have a list where you can register a SOCCER TIMES in CHAMPIONSHIPS, that is, I need to select several teams for a league, I make a list with checkboxes but I do not know how to proceed later: <ul> @foreach (var item i...
asked by 30.11.2016 / 00:05