Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best ViewModel naming convention? [duplicate]

I'm writing an asp.net mvc2 project with a lot of views/partialviews. Reading on good MVC practices, I've been encourage to create ViewModels. Its really nice and makes sense to do so but I'm noticing recently that I can no longer easily remember what model is for what view. I'm hoping there is a nice naming convention for ViewModels that can handle large projects.

My question is can this situation be improved?

like image 829
Roman Avatar asked Sep 08 '10 13:09

Roman


1 Answers

I like to keep it simple, for instance, if you have an object named Folder:

View = "FolderView.xaml"

ViewModel = "FolderViewModel.cs"

like image 153
jsmith Avatar answered Sep 27 '22 18:09

jsmith