Questions tagged as 'entity-framework'

2
answers

No Entity Framework provider found for ADO.NET provider [closed]

I am dividing my application in layers, I installed EF in the application layers and repository, in my view everything is correct, but I am having the following error:    No Entity Framework provider found for the ADO.NET provider with invari...
asked by 22.09.2015 / 18:53
2
answers

Error saving EF changes

Good evening, When trying to insert the data into the table it gives me the error "An error occurred while updating the entries. See the inner exception for details." var db = new Repositorio(); var perfilPessoaDB = Objeto.Conve...
asked by 13.07.2015 / 05:36
1
answer

Display 3 Models in a View

I have 3 Models and need to mount 2 (two) lists and a "Save" button: Class:TBProduct:publicclassTBProduto{[Key]publicintTBPRODUTOID{get;set;}publicstringDSPRODUTO{get;set;}publicvirtualICollection<TBProdutoFornecedor>TBProdutoFornece...
asked by 28.09.2015 / 21:10
1
answer

Function Linq does not return List

Hello, I have an application and it does not return a list that I make SELECT via Linq-to-Sql The error can be in the SELECT that linq-to-sql is doing. SELECT [Extent1].[Codigo] AS [Codigo], [Extent1].[NomeFantasia] AS [NomeFantasia], [Ext...
asked by 04.09.2015 / 01:24
1
answer

Problem in relationship with EF6 (Self-Relationship and Associative Class)

I need to know if my self-relationship and my associative class are correctly created according to the original model done in the SQL Server Diagram. Original Model - SQL Server MymodelinPowerTools ClassRegion[Table("Regiao")] public cl...
asked by 29.09.2015 / 03:31
1
answer

Questions with Entity Framework (Navigation Properties and Create method)

I have been reading several articles and so far I have not been able to understand the real function of navigation property. In the last articles I read, it said it serves as a foreign key for navigation, but when I tried to create a project sta...
asked by 08.09.2015 / 19:08
1
answer

EF 6 Code First: Decimal field gives error when trying to save

Hello, good morning. I have a class that has a decimal field where I save the price. So far so good. When it is displayed in the / Edit / of the page, it is also beauty. But that's the problem: 1 - The MVC (which I am using 4 with EF 6) it di...
asked by 04.07.2015 / 10:30
1
answer

How to always keep 1 record in DB after inserting with entityframework?

I'm developing in .NET MVC using Entity framework, how do I save a data query whether there is a record or not in the table? 1. Query whether or not there is any data in the table 2. if you have any record, it adds replacing the previous element...
asked by 12.03.2015 / 21:06
1
answer

Customize Individual User Accounts

Well, I have an Asp.Net MVC web project that uses Individual User Accounts and I would like to use a specific table in my database and a different class to manage user login. How can I do this?     
asked by 03.06.2015 / 14:35
2
answers

Delete a list of data in EF

I have a method that deletes a version of a file according to the last file version, 1 file can have many versions, and I wanted to delete all versions, I was able to delete only 1 version of a particular file. I want to delete all versions of a...
asked by 11.02.2015 / 13:56