Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading and filtering 20 m records Pin
Mycroft Holmes28-Oct-13 22:24
professionalMycroft Holmes28-Oct-13 22:24 
GeneralRe: Reading and filtering 20 m records Pin
nitin_ion28-Oct-13 23:02
nitin_ion28-Oct-13 23:02 
GeneralRe: Reading and filtering 20 m records Pin
Mycroft Holmes29-Oct-13 2:03
professionalMycroft Holmes29-Oct-13 2:03 
GeneralRe: Reading and filtering 20 m records Pin
nitin_ion29-Oct-13 18:29
nitin_ion29-Oct-13 18:29 
GeneralRe: Reading and filtering 20 m records Pin
Mycroft Holmes29-Oct-13 19:54
professionalMycroft Holmes29-Oct-13 19:54 
AnswerRe: Reading and filtering 20 m records Pin
V.29-Oct-13 0:46
professionalV.29-Oct-13 0:46 
GeneralRe: Reading and filtering 20 m records Pin
Mycroft Holmes29-Oct-13 2:05
professionalMycroft Holmes29-Oct-13 2:05 
QuestionAutoMapper Error - Missing type map configuration or unsupported mapping Pin
Kevin Marois28-Oct-13 15:26
professionalKevin Marois28-Oct-13 15:26 
I have 2 identical models:

public class CredentialAPIModel
{
    public string UserName { get; set; }

    public string Password { get; set; }
}


and

public class CredentialEntity
{
    public string UserName { get; set; }

    public string Password { get; set; }
}


and my mappings

Mapper.CreateMap<CredentialEntity, CredentialAPIModel>();
Mapper.CreateMap<CredentialAPIModel, CredentialEntity>();


And this is where it fails:

public LoginAPIResponse Login(CredentialAPIModel credentials)
{
    CredentialEntity credentialEntity = Mapper.Map<CredentialAPIModel, CredentialEntity>(credentials);

    LoginResponse appSecurityResponse = BO.Login(credentialEntity);

    .
    .
    .       
}



I get this:

Missing type map configuration or unsupported mapping.

Mapping types:
CredentialAPIModel -> CredentialEntity
FMG.WebServiceAPI.Models.AppSecurity.Models.CredentialAPIModel -> FMG.Entities.AppSecurity.Entities.CredentialEntity

Destination path:
CredentialEntity

Source value:
FMG.WebServiceAPI.Models.AppSecurity.Models.CredentialAPIModel


Mapper.AssertConfigurationIsValid() does not find any errors.

Anyone see what's wrong here?

Thanks
If it's not broken, fix it until it is


modified 28-Oct-13 21:37pm.

AnswerRe: AutoMapper Error - Missing type map configuration or unsupported mapping Pin
CodeBlack29-Oct-13 3:14
professionalCodeBlack29-Oct-13 3:14 
QuestionAccessing users folder. Pin
elficodegeek28-Oct-13 13:00
elficodegeek28-Oct-13 13:00 
AnswerRe: Accessing users folder. Pin
Richard Andrew x6428-Oct-13 13:07
professionalRichard Andrew x6428-Oct-13 13:07 
GeneralRe: Accessing users folder. Pin
elficodegeek30-Oct-13 13:10
elficodegeek30-Oct-13 13:10 
AnswerRe: Accessing users folder. Pin
Bernhard Hiller29-Oct-13 21:49
Bernhard Hiller29-Oct-13 21:49 
GeneralRe: Accessing users folder. Pin
elficodegeek30-Oct-13 13:01
elficodegeek30-Oct-13 13:01 
GeneralRe: Accessing users folder. Pin
Bernhard Hiller30-Oct-13 22:19
Bernhard Hiller30-Oct-13 22:19 
GeneralRe: Accessing users folder. Pin
elficodegeek1-Nov-13 13:06
elficodegeek1-Nov-13 13:06 
QuestionWebBrowser - Fetching HTML code from developer tool Pin
AshwiniSH28-Oct-13 2:16
professionalAshwiniSH28-Oct-13 2:16 
AnswerRe: WebBrowser - Fetching HTML code from developer tool Pin
Dave Kreskowiak28-Oct-13 3:12
mveDave Kreskowiak28-Oct-13 3:12 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
AshwiniSH28-Oct-13 4:08
professionalAshwiniSH28-Oct-13 4:08 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
Dave Kreskowiak28-Oct-13 7:03
mveDave Kreskowiak28-Oct-13 7:03 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
AshwiniSH28-Oct-13 19:42
professionalAshwiniSH28-Oct-13 19:42 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
Richard MacCutchan28-Oct-13 22:44
mveRichard MacCutchan28-Oct-13 22:44 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
AshwiniSH28-Oct-13 23:11
professionalAshwiniSH28-Oct-13 23:11 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
Richard MacCutchan28-Oct-13 23:41
mveRichard MacCutchan28-Oct-13 23:41 
GeneralRe: WebBrowser - Fetching HTML code from developer tool Pin
Dave Kreskowiak29-Oct-13 2:45
mveDave Kreskowiak29-Oct-13 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.