Skip to content

'Mapper' does not contain a definition for 'Initialize' #11

Description

@cseas

This error is thrown in the below code snippet for Startup.cs:

private static void InitializeMapper()
{
    Mapper.Initialize(x =>
    {
        x.CreateMap<Guest, GuestModel>();
        x.CreateMap<Room, RoomModel>();
        x.CreateMap<Reservation, ReservationModel>();
    });
}

This is probably because Mapper.Initialize is obsolete since version v9.0.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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