Questions tagged as 'entity-framework'

0
answers

Not getting the correct User ID core.net

I'm using ASP.NET CORE 2.0, and I'm having to get the user ID logged in. This is my Account Controller: [Route("[controller]/[action]")] public class AccountController : Controller { private readonly SignInManager<ApplicationUser> _s...
asked by 12.07.2018 / 14:11
1
answer

Error performing Update using EntityFramework Core

I have a layered project using DDD and I'm having problems while doing UPDATE from a record of my PersonSituation class with EF Core. public Task Handle(UpdatePessoaSituacaoCommand message, CancellationToken cancellationToken) {...
asked by 08.07.2018 / 16:25
1
answer

Fill in date automatically in ASP.NET MVC 5

Hello, how are you? I need some help from you, I already tried it here in the forum but I did not have success with the results. I have a small application where I make control of Digital Certificates, my Model Certificate is simple as below:...
asked by 10.07.2018 / 02:23
0
answers

Entity Framework 6 Many to Many: PK validation problem when adding

Good morning guys, I'm breaking my head here and I still can not fix it. I have two entities, PropertyDetails and PropertyDetails, with relationship n to n. I have been populated, so when I am going to register the ImovelDetalhe, I select thr...
asked by 13.07.2018 / 17:55
0
answers

Select with entity does not work

I have this method that makes me a select but it does not return anything to me. [WebMethod] [ScriptMethod(UseHttpGet = true)] public JsonResult GetContratos() { List<object> resultado = new List<object>(); var contratos...
asked by 13.07.2018 / 16:30
0
answers

What is the difference between the MySql.Data.Entity Vs MySql.Data.EntityFramework

I created an application using EF 6.2.0 using MySql When I use the MySql.Data 8.0.11 package together with MySql.Data.EntityFramework 8.0.11 it works normally. When I use the MySql.Data 6.10.7 package together with MySql.Data.Entity 6.10.7...
asked by 04.07.2018 / 20:07
1
answer

Remaining with input text filled in after changing asp.net view

I have the following situation I have a view with a certain field, when clicking a button it calls a certain view, it would need that when clicking on a button of that other view, it called that original view with the form filled as it was....
asked by 04.07.2018 / 20:01
3
answers

What are the good practices of MVC with Entity Framework?

I would like to know what are the good practices of MVC using the Entity Framework, regarding the MVC folders. When I create the Entity Framework, it automatically creates the database file, and the Context file. In what folder would be id...
asked by 05.07.2018 / 11:26
0
answers

Remove fixed lenght from SQL Server

The string fields of the tables in my database are coming with fixed length as true. So if the size is 60, and I saved a string with size of 30, it fills the string with spaces up to the full size. If it is in edmx and set manually to false it w...
asked by 30.06.2018 / 20:33
0
answers

Mapping one to zero with entity framework

Good afternoon, I have a document table that has relationship 1 to 0 with another table of Usuario to return the user name, but I get the error:    Conversion specified is not valid. My mapping: public class DocumentoOffConfigura...
asked by 03.09.2018 / 22:57