Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8513845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:41:45+00:00 2026-06-11T04:41:45+00:00

So I wanted to make a own custom mapper earlier but I got the

  • 0

So I wanted to make a own custom mapper earlier but I got the advice that it is difficult(because I got refrences etc, and I agree with that ^^) and that I ll have more luck with automapper since it is easy etc. So I started creating mapping for the classes I want to convert (I want to make this application to update a SQLserver database from a SQLite file on a weekly base, the table names and properties are the same, only the capitals are not the same, but automapper is case insensitive so great)

Here is the Code I tried:

Mapper.CreateMap<person, Person>();
Mapper.CreateMap<personAbility, PersonAbility>();
Mapper.AssertConfigurationIsValid();

Then I get the error that person doesn t know how to convert the personabilities propertie. So I googled and found out that I need to include it:

Mapper.CreateMap<person, Person>()
.Include<personAbility, PersonAbility>()
Mapper.CreateMap<personAbility, PersonAbility>();
Mapper.AssertConfigurationIsValid();

However here it complains that it is not personability it needs but a list(EntityCollection). So I tried:

Mapper.CreateMap<person, Person>()
.Include<EntityCollection<personAbility>, EntityCollection<PersonAbility>>()
Mapper.CreateMap<personAbility, PersonAbility>();
Mapper.AssertConfigurationIsValid();

However it gives an error that it doesn t know the type, and I googled some more finding: https://github.com/AutoMapper/AutoMapper/wiki/Lists-and-arrays On the support list there isn t a EntityCollection. Meaning I ran into an other wall(dead end)??? Anyone knows a solution for this, if you got an other solution/way to map my database, any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:41:46+00:00Added an answer on June 11, 2026 at 4:41 am

    I finnaly got it fixed. I was on the wrong way with include. I just needed to map the collection too

    Adding this line fixed it:(and removing the include line)

            Mapper.CreateMap<EntityCollection<personAbility>, EntityCollection<PersonAbility>>();
    

    Thanks for all the effort

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just wanted to make a tooltip of my own[custom] and checkout how it
I wanted to make my own editor to for html, css, etc, where on
I have to write my own hash function. If I wanted to just make
I wanted to make a basic custom keypad for the iPhone , I did
I wanted to make an application that will take either the path of the
I wanted to make a function that populates a Grid in WPF with pictures.
I wanted to make my own encryption algorithm and decryption algorithm , encryption algorithm
I wanted to test the mapKit and wanted to make my own overlay to
I've been tinkering around with PHP lately and wanted to make my own blog
I wanted to make a linked list class ListList that inherits from a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.