logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Wednesday, October 7, 2020 2:02:02 PM(UTC)
Joe Payne2

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.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Thursday, October 15, 2020 2:26:18 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

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.
thanks 1 user thanked shaharyar for this useful post.
Joe Payne2 on 10/15/2020(UTC)
Users browsing this topic
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.