Comments (12)
@thall90 thanks for your time and confirming that MappingGenerator works on Rider.
from mappinggenerator.
@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.
@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.
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.
That's incredible! Thank you!
Also, if there are any contributions that could accelerate this process, I would love to help!
from mappinggenerator.
Ok, I've updated the NuGet package, Can you test it? Especially mapping between collections.
from mappinggenerator.
Sure thing! I'll let you know once I've done so
from mappinggenerator.
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.
What version of the Rider are you using? Refactoring options should be available in the menu triggered by the alt+enter
shortcut.
from mappinggenerator.
I'm using version 2019.2
. I'm not seeing any of the mapping function actions in the alt+enter
menu.
from mappinggenerator.
Can you provide the sample code?
from mappinggenerator.
from mappinggenerator.
Related Issues (20)
- NullReferenceException on omitted type parameter HOT 4
- Source Generators HOT 4
- Mapping properties of one type on another HOT 1
- Inconsistent behaviour HOT 17
- Implement Clone Method refactoring has issues with arrow functions
- Allow different spellings for comparison HOT 6
- Use the existing instance instead of creating a new one HOT 9
- Generate unit tests HOT 3
- Suggestion: Scaffold invocation on multiple lines. HOT 2
- Suggestion: Varying sample data HOT 3
- Could not load type 'MappingGenerator.Features.CodeFixes.ExplicitConversionCodeFixProvider' HOT 12
- How do I "Verify your Roslyn integration option in case you are using R#."? HOT 2
- VSCode extention ? HOT 1
- ValueCollection appears to cause crash on Quick Action HOT 3
- UnitTest generator? HOT 2
- Visual Studio Performance slowing down HOT 1
- Fix NuGet package OnBuildGenerator HOT 4
- Improve interaction with `[InitRequired]` HOT 6
- Mapping from nullable structs to simple value handled incorrectly
- Generating mapping expression for C# 9 positional records HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mappinggenerator.