zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

8 results in tag: automapper-6

AutoMapper 6 - How can I create a mapping that ignore and map a list of object

I'm a little newbie on AutoMapper, I don't find almost nothing about v6.0 on Stackoverflow and Github. I need help on this problem...I have this two Entities:...public class DocFinanceiro { public int AutoId { get; set; } public virtual ICollec...
asp.net-mvc-5 automapper-6 ef-fluent-api entity-framework-6
asked by Igor Jorge

AutoMapper Ignore not working on entity update

I Know this question was answered in another thread. And I tried what was suggested but it still not working....Here is my entity and model mapping......cfg.CreateMap<DocumentAmountModel, InputDocumentData>() .ForMember(d => d.A...
automapper-6 c# entity-framework-6
asked by type.parse

C# Automapper 6.1.1 - Collection/List destination properties loses values Entity Framework 6

I have a problem when mapping collections with Automapper 6 and I can't find a solution. In the ...updatedArticle... object below I have the old ...Created... and ...Updated... values left after mapping since they do not exist on the view model. However t...
automapper automapper-6 c# entity-framework entity-framework-6
asked by Ogglas

C# Entity Framework 6 - AutoMapper 6 - Collections/List - Add and Update works but removing item throws an error

As the title says I can add and update but when it comes to deleting I get an error....The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationsh...
automapper automapper-6 c# entity-framework entity-framework-6
asked by Ogglas

Mapping viewModel object to ICollection entity

I have a basic table with a few FK references. So when I retrieve an entity for an update operation; that entity contains ...ICollections... of related entites. My main viewModel contains ...Lists... which correspond to these ...ICollections.... However, ...
asp.net-mvc automapper-6 c# entity-framework-6
asked by Shwrk

AutoMapper.Collections.EntityFramework

Asking same question differently!...Its seems clear I need to elaborate on this question because I have no viable responses....Based on this AutoMapper registration code:...Mapper.Initialize(cfg => { cfg.AddCollectionMappers(); cfg.SetGenerateProper...
automapper-6 c# entity-framework entity-framework-6 generic-collections
asked by user953710

Automapper ProjectTo does not allow mapping properties to custom methods

I'm using EntityFramework 6.2.0 and Automapper 6.2.2. I need to map the entity ...Cart... to ...CartDto.... ...CartDto... has a property ...Total... which needs to be mapped to the result of ...Cart.GetTotal().... I'd like to use ....ProjectTo... to simpl...
automapper automapper-6 entity-framework-6 linq
asked by tocqueville

AutoMapper not automatically copying Id column of same name

AutoMapper 7.0.1...Found an interesting issue that I couldn't explain. When mapping the view model back to the DB entity object, the Id property is not mapped and is always 0, unless I explicitly set its MapFrom in the ...CreateMap... definition....In the...
automapper automapper-6 c# entity-framework-6
asked by Chad Richardson

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!