Questions tagged as 'entity-framework'

0
answers

MySql Bank does not connect with Entity Framework

I'm trying to connect a MySql database with C # through the Entity Framework, but every time I click on the next button it does not work (with Sql Server going the problem is with MySql)     
asked by 29.01.2018 / 06:39
1
answer

How to assign a database value to a new object in C #?

I'm creating an application like a bank to train C #, but I stumbled into a situation. I have a database with the Accounts, Clients, and Account Types tables. In the table TypeCounts there is registered the item "Savings" with ID "1" and the ite...
asked by 03.03.2018 / 00:34
1
answer

Error trying to save data in two tables at the same time

Good morning. When updating a table my system has to save the current data in a historical table and only then save the form data in the table by performing the update. This is the action that receives the form to do the update, and soon call...
asked by 26.12.2017 / 14:48
0
answers

Saving a Many-to-Many Relationship with Entity Framework

Questions when inserting objects into the database when using Entity Framework 6 + C # WPF. I have 3 objects, ServiceOrder, Service, and ItemsOs. with the following structure: public partial class OrdemServico { [System.Diagnostics.Code...
asked by 22.12.2017 / 00:20
0
answers

Entity Linq query in many-to-many relationship

I inherited a bank that is untouchable ... Despite having some very "strange" things. For example I have the following situation that would represent a n-n relationship but the relationship does not actually exist. In other words, a nei...
asked by 09.12.2017 / 18:01
2
answers

In Developing Code First how do I relate the AspNetUsers table to other table

I'm developing a real-estate system and need to match the AspNetUsers table with the tables that the system will have and cardinality one to many , so I want the system send me reports of who performed registration features and other function...
asked by 18.12.2017 / 01:46
1
answer

Autocomplete with ajax in Entity Framework

I have the following HTML code: <input id="pesquisaEstilo" name="pesquisa" type="text" placeholder="Destrito, Concelho" /> <input type="submit" value="Pesquisar" id="botaoPesquisar"/> I want to autocomplete the search bar using...
asked by 17.12.2017 / 20:19
1
answer

How to Create a Table N: N Where One of the Keys Does Not Belong to a Table of the Same Database

Context: The application has a module for logging of calls and we use another application to deal with the record of incidents, both are in different databases. Each care may be related to one or more incidents and an incident may be rel...
asked by 30.12.2017 / 16:38
1
answer

Relationship 1 - N Entity Framework

I'm developing a test project and I'm having a problem with 1-N relationship with Entity. Model Cab_Venda: public Cab_Venda() { Det_Venda = new HashSet < Det_Venda > (); } public int id { get; set; } public int id...
asked by 10.12.2017 / 20:33
1
answer

At what point does the Entity Framework query an IQueryable?

I'm developing a method for an API that consists of the following: fetch all evaluations from a given client and, if specified, limit the amount of records that will be returned. For example: public IEnumerable<Avaliacao> GetAvaliacoe...
asked by 16.02.2016 / 21:50