Skip to content

Riok.Mapperly: 3.1.0 : CS8795 Partial method 'xxx' must have an implementation part because it has accessibility modifiers. #663

Closed Answered by TimothyMakkison
senal asked this question in Q&A
Discussion options

You must be logged in to vote

Even I tried downgrading the Mapperly to 3.0.0

Use 3.1.0 instead, 3.0.0 is broken for VS users 😞

Try this:

[Mapper]
public static partial class VehicleMapper
{
    // map properties with different names
    [MapProperty("Make_Year", "MakeYear")]

    // map nested props (Engine)
    [MapProperty("Engine.Engine_Liters", "Engine.Liters")]
    [MapProperty("Engine.Engine_Cylinders", "Engine.Cylinders")]
    [MapProperty("Engine.Engine_Number", "Engine.Number")]

    // map nested props (Registration)
    [MapProperty("Registration.Registration_Status", "Registration.Status")]
    [MapProperty("Registration.Registration_State", "Registration.State")]
    public static partial Vehicle MapExt…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@senal
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by senal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants