Questions tagged as 'entity-framework'

0
answers

Validation error in the entity framework

In my method of adding files is giving the following exception to debug: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. Method: internal void AddArquivo(Model.Arquivo arquivo) {...
asked by 09.02.2015 / 15:09
2
answers

Method to edit data with Entity

I am developing a file manager and have already implemented some methods like addArquivo , listarArquivo , listarVersoes , etc. But I need to edit it, see my DAL methods: Add: internal void AddArquivo(Model.Arquivo arq...
asked by 09.02.2015 / 15:39
2
answers

Error updating Entity entries

Iamtryingtoinsertsomedatafromsomefilesbytheentity,howeveritgivesthiserror:Method:internalvoidAddArquivo(Model.Arquivoarquivo){using(varctx=newTESTEntities()){varversao=arquivo.ArquivoVersoes[0];ctx.ARQUIVO.Add(newARQUIVO(){ARQUIVO_GUID=arquivo.A...
asked by 09.02.2015 / 14:06
1
answer

Method returning object name in entity

I have the following method: internal ArquivoVersao GetArquivoVersao(string arquivoVersaoGuid) { using (var ctx = new TestEntities()) { var versao = (from ver in ctx.ARQUIVO_VERSAO wher...
asked by 06.02.2015 / 14:35
2
answers

ArgumentOutOfRangeException with entity

I have a method that expects a file object, what it does is add references in the database: See the method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new TestEntities()) { var versa...
asked by 06.02.2015 / 15:08
1
answer

Doubt on Entity Modeling

I have an entity called Requests that satisfies the following business: A request is made by an Employee (Entity), then it is changed by another Employee and then confirmed by a third Employee. In a request I am sending a Client (Entity)...
asked by 16.02.2015 / 00:15
2
answers

C # MVC EF5 delete relationships

Hello, I'm developing an application using C # MVC and EF5 and I have the following problem: I have a client group management screen, in this group I can insert and remove clients, I use a relationship table between clients and groups called cli...
asked by 15.07.2014 / 20:46
1
answer

Dependence on services

I have a service that closes an entry in stock. Like all entry process to register the note I have the manual register of each item of the note and when closing the note I need to update the inventory of each item of this note. I've done the...
asked by 20.08.2014 / 22:34
2
answers

How do I perform the filling of an information that is in a JSON complex type?

I'm trying to fill in an ICollection type that is owned by my Professional template. When executing the request I pass the information via JSON ButintheVSandGETdebugtheinformationisnotthere!     
asked by 02.10.2018 / 20:22
1
answer

Publishing system with Entity Framework 6

There is an executable installer of Entity Framework 6 for servers. I published the system on a Windows server 2008 server, and it is not working. You are returning the following error:    Schema specified is not valid. Errors:   Co...
asked by 29.07.2016 / 21:25