Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FreshPageModelMapper.cs #70

Closed
wants to merge 1 commit into from

Conversation

blackice2999
Copy link

Hi,

i think its useful if the FreshPageModelMapper returns "View" instead of "Page" if the ViewModel Name ist "ViewModel" instead of "PageModel".

What do you think about it?

@krisrok
Copy link

krisrok commented May 17, 2016

yes please! :) just stumbled upon that myself.

@krisrok
Copy link

krisrok commented May 17, 2016

@rid00z even if you don't merge, be so kind to update the documentation accordingly as it is really ambiguous saying "Now we can use both the ViewModel naming conventions."

@rid00z
Copy link
Owner

rid00z commented May 19, 2016

This would be a breaking change for other apps, it sounds great but can it be done in a non breaking change?

@blackice2999
Copy link
Author

Hi, absolutely it may or not may breaking. It´s a bug and if someone use this method as is is he need to fix them. I am not a friend of encapsule so simple bugs in a workaround.

If you realy to avoid breaking a possible solution can be searching the assemblies if a class will be exists before replacing the name. Can Type.GetType() do this work ?

@rid00z
Copy link
Owner

rid00z commented May 19, 2016

Technically it's not a bug it's a preference.

Many people already rely on this default, if you change it then it will break for many people. How do we accommodate those people?

@blackice2999
Copy link
Author

You are the maintainer its your choice ;) I think its a simple bug and a commit message and release note should be enough for these peoples to change the code or stay on old version.

@blackice2999
Copy link
Author

blackice2999 commented May 19, 2016

@rid00z
What do you think about something like this? (Sorry if it is not perfect but iam new on C#)

https://gist.github.com/blackice2999/44a3f5c3fe2de695f5cc371234dc75ee

@krisrok
Copy link

krisrok commented May 19, 2016

my take: #71

@blackice2999
Copy link
Author

I think it make sense to discuss this issue on a single place: #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants