Code Monkey home page Code Monkey logo

Comments (12)

cezarypiatek avatar cezarypiatek commented on May 20, 2024 2

@thall90 thanks for your time and confirming that MappingGenerator works on Rider.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024 1

@thall90 do you still experience a problem with Rider? I observed that after updating nuget package restart is required to load a new version.

from mappinggenerator.

thall90 avatar thall90 commented on May 20, 2024 1

@cezarypiatek I apologize for the delay in getting back to you. After installing the package and restarting Rider, I am indeed able to access the Mapping actions from the alt+enter context menu.

Testing with the following classes:
`public class TestMapOrigin
{
public Guid TestId { get; set; }

        public string TestName { get; set; }

        public bool IsActive { get; set; }

        public ICollection<Guid> IdCollection { get; set; }
    }

public class TestMapDestination
{
public Guid TestId { get; private set; }

        public string TestName { get; private set; }

        public bool IsActive { get; private set; }

        public ICollection<Guid> IdCollection { get; private set; }

        public TestMapDestination(
            Guid testId,
            string testName,
            bool isActive,
            ICollection<Guid> idCollection)
        {
            TestId = testId;
            TestName = testName;
            IsActive = isActive;
            IdCollection = idCollection;
        }
    }`

I achieved the following result:

public static TestMapDestination Map( this TestMapOrigin inputDTO) { return new TestMapDestination(testId: inputDTO.TestId, testName: inputDTO.TestName, isActive: inputDTO.IsActive, idCollection: inputDTO.IdCollection); }

I was also able to achieve positive object initializer results with public setters on the TestDestination class.

I would say that this package is good-to-go!

Thank you so much for your help, and for your consistent, prompt responses.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024

Hi,

This is the same problem as with VSCode #83. However, as I know, Rider supports also Code Refactorings from NuGet packages. I will try to release a nuget package with Mapping Generator in the next week. I will let you know when it is ready.

from mappinggenerator.

thall90 avatar thall90 commented on May 20, 2024

That's incredible! Thank you!

Also, if there are any contributions that could accelerate this process, I would love to help!

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024

Ok, I've updated the NuGet package, Can you test it? Especially mapping between collections.

from mappinggenerator.

thall90 avatar thall90 commented on May 20, 2024

Sure thing! I'll let you know once I've done so

from mappinggenerator.

thall90 avatar thall90 commented on May 20, 2024

I've added the NuGet package to my project, I'm not seeing any of the context actions. Is the mechanism for generating a mapping different when using the NuGet variant?

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024

What version of the Rider are you using? Refactoring options should be available in the menu triggered by the alt+enter shortcut.

from mappinggenerator.

thall90 avatar thall90 commented on May 20, 2024

I'm using version 2019.2. I'm not seeing any of the mapping function actions in the alt+enter menu.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024

Can you provide the sample code?

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on May 20, 2024

image

image

from mappinggenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.