I created an ASP.NET Core Web API project, whose template is tailored for RESTful services. In my DB instance, I have a SQL table called Organizations
and a view based on that table called Organizations_v
. In the .NET project, I created a model under the Models
folder called Organization
. The model will be backed by the SQL view.
As this an API, I don't really have any pages/views. It's not a true ASP.NET Core MVC application in that sense, right? But convention says if your model is backed by multiple tables, the model class name should end with ViewModel
.
What's the proper naming convention for the model class for my use case? Since I'm using a SQL view to back the model, should I name the model class OrganizationViewModel
or Organization
?