Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Wouldn't it make more sense to have all the view models as partial classes? Is that possible/supported in MVC?
That way devs don't have to modify existing files to add new properties to a page model. They can just create a separate partial class in a different folder. It would isolate customizations more cleanly and reduces workload to merge changes when a new version is released.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Wouldn't it make more sense to have all the view models as partial classes? Yes, you are right. This way we can allow customizations to be maintained easily. Quote:Is that possible/supported in MVC? Yes, this is a feature of c# and is supported in MVC. Thanks for the suggestion. I will open a discussion.
|
1 user thanked shaharyar for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close