Skip to content

Mapper not using custom Guid map #29

@brgrz

Description

@brgrz

In asp.net core app within Configure method of Startup class I have

	Mapper.AddMap<Guid, string>(src =>
	{
		return src.ToString();
	});

which doesn't get used when calling Mapper.Map()

response.Items = docs.Select(d => Mapper.Map<DocumentSearchViewResponse>(d));

The corresponding string properties that should be filled with string representation of Guid are empty/null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions