Questions tagged as 'entity-framework'

0
answers

problem with EntityFramework [closed]

See the return of the script, running mysql by sqlYog: ButwhenIruninVisualStudio,thereturnisdifferent: Serializedresult:"TotalMesAMes": [ { "mes": "January", "status": "Fechado", "valor_negocio": 1500 }, {...
asked by 03.11.2017 / 17:15
0
answers

How to compile C # code at runtime in an ASP.NET MVC5 project?

I tried to use CodeDom , but when I try to search for a specific DLL to execute my code, the Assembly.GetEntryAssembly().Location command always returns me null . It seems that ASP.NET projects are executed an...
asked by 30.10.2017 / 14:44
0
answers

Querying using the Entity Framework

I'm a beginner in the Entity Framework and soon got a maintenance software that uses Entity. I need to create a report and do the following SQL query using Entity: select p.RA, p.Nome, p.Modulo, a.Descricao from inscricao as i, Participant...
asked by 14.09.2017 / 15:36
1
answer

Output from my service does not match my password

In the output of my service, for the DataItems field, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> It turns out that I do not have any Label Qt...
asked by 13.09.2017 / 12:39
0
answers

I can not map EF

I have this entity in my Domain: public class CalibrationToolActivePart { [Key] public int CalibrationToolActivePartID { get; set; } public int CalibrationToolID { get; set; } publi...
asked by 26.09.2017 / 15:33
1
answer

ASP.NET MVC + Entity - Mapping New Tables

Good morning, I have a project using ASP.MVC + EF and I mapped about 20 tables using the VS wizard (creating ADO.NET Entity Data Model , selecting the database and tables I want), but now I have 16 more tables to insert in...
asked by 23.08.2017 / 14:33
1
answer

Relationship error with Entity Framework

I'm developing a test project that I want to include in my TCC, but I encountered a problem matching two entities to create the tables in the database with the Entity Framework. They are 'Post' and 'Comment' public class Post {...
asked by 11.07.2017 / 04:43
0
answers

I can not show the error in my view

Well, I have a view and I can not show the error messages, the code is very large and put in a summarized form but needs some part I'm editing. Controller Before it was like this: if (!ModelState.IsValid) { return PartialView("InternalAud...
asked by 18.07.2017 / 15:37
1
answer

Problems retrieving DB data with Entity 6.1.3 and Web API

I did a test project, called quotation to use the Web API and Entity. Well, I've been to my web.config and created my connection string like this: <add name="CotacaoContext" connectionString="Data Source=Minha_Maquina\Instancia; Initial Cat...
asked by 13.07.2017 / 14:09
0
answers

Knockoutjs code to work after controller returns

I have an application that uses Knockoutjs, but when saved it returns some error the button that uses Knockutjs to and does not work, only after refreshing the page does it work properly, does anyone know what it can be. csHtml @model Entiti...
asked by 17.07.2017 / 13:31