Questions tagged as 'entity-framework'

1
answer

How to customize login screen in Asp.Net Core 2.1

With the following service settings below, I can log in to Twitter, Hotmail, Facebook. Noting that my project at creation time enabled the individual login option services.AddAuthentication() .AddTwitter(twitterOptions =>...
asked by 22.11.2018 / 01:39
0
answers

Update data that has many-to-many relationship with Entity Framework

I'm trying to update an object and the only thing that does not update is its relationship from many to many the rest as first and last name update [HttpPost] public IActionResult AtualizarProfessor(int id, string nome, string sobrenom...
asked by 10.11.2018 / 17:58
0
answers

Error creating ADO.NET Entity Data Model file

Good morning, I am trying to create an ADO.NET Entity Data Model file, with connection to the MySql (Workbench) database, however or from the error, or the Entity Data Model screen closes. So I have two scenarios: 1) I create my MVC projec...
asked by 06.11.2018 / 16:25
0
answers

The provider for MySqlClient of the Entity Framework can not be loaded, in ASP.NET application

I did some studies on American StackOverflow regarding this case and I was not successful. When I try to access my link page, I get the message below:   The Entity Framework provider type 'MySql.Data.MySqlClient.MySqlProviderServices, Entit...
asked by 04.11.2018 / 17:46
1
answer

Doubt when searching for items with Entity

Well, I have to get all the sales items done. Every item is recorded with a CARRINHOID on a sale, on the sales table I have the CARRINHOID. How do I get all these items? I made this code: public static List<ItemVenda> BuscarItensPorVenda...
asked by 11.11.2018 / 02:41
1
answer

How to do a search with Join using Entity framework Lambda and Linq

How would I do to search two or more tables. In the system I'm doing, I have the Boat, BarOperationType, and BarBase My mapping is as follows: HasRequired(c => c.ClasseBarco) .WithMany(c => c.Barcos)...
asked by 23.10.2018 / 15:43
0
answers

EF Code First Error MySQL

I'm doing codefirst using mysql. When I run the update-database the following problem occurs: Target database is: 'DBContext' (DataSource:. \ SQLEXPRESS, Provider: System.Data.SqlClient, Origin: Convention). System.Data.SqlClient.SqlExcep...
asked by 30.09.2018 / 02:41
0
answers

How to include tables in a one to one EF Core relationship

I need to include the highlighted blue tables for EF Core to make the necessary joins. The PersonFishDocument table has a one-to-one relationship with the highlighted blue tables. I've already tried using .ThenInclude, but the PersonFishDocum...
asked by 01.10.2018 / 00:04
0
answers

Opinion on architecture using Dapper

In a project, I have some standard methods, for example: //Execute Return List DapperORM.RetornoList<EmployeeModel> <= public static IEnumerable<T> RetornoList<T>(string procedureName, DynamicParameters param = nul...
asked by 20.09.2018 / 16:39
1
answer

Using Identity with Entity Framework to make one-to-many relationship with other tables

In my scenario a user has several boats and a boat has several notes. So I need to relate the user to the boat so that this user can see these notes. I'm using the MVC 5 default identity template. So I need to relate the AspNetUser table t...
asked by 25.09.2018 / 21:12