Jan 14, 2020 09:02 PM|AppDev01|LINK
Thank you sadly the code first approach does not work for me and adds even more confusion to the mix.
It's not that I don't understand c or mvc.. I program every day. I don't understand the abstract concept of View Models .. I never understood why people feel that you don;t understand the whole picture why you don't understand a concept with in that picture.
I purposely avoid the code first model because it is dumb (to me) for me a well design database is a must and then I can build onto of that.
I will try to ask the question again. Can a view model work in a detail view.
IF the answer is Yes, My next question will be are there some basic example where this is shown where some of the higher concept stuff in not added to that will confuse the concept?
I don't need enumeration unless it required for the example. I am simply trying to wrap my head around how to make view models work since there is no plan english way to describe what they do and when you would use them and how you use them without all the
technical mumbo jumbo.
I not rejecting you suggestions... or the community's as you put it... I am trying to focus on one simple thing. I am looking for one simple clear unambiguous example showing this concept in the most basic form.
I am not trying to go back and learn C all over again.
Just and edit:
Currently in my program I am getting this error
Severity Code Description Project File Line Suppression State
Error CS1061 'IEnumerable<Jobs_ViewModel_Class>' does not contain a definition for 'POSIT_POSTING_DATE' and no accessible extension method 'POSIT_POSTING_DATE' accepting a first argument of type 'IEnumerable<Jobs_ViewModel_Class>' could be found (are you missing a using directive or an assembly reference?) JobsOpeningBackendSite C:\APP_DEV\JobsOpeningBackendSite\JobsOpeningBackendSite\Views\JOBS_POST_TBL\Details.cshtml 20 Active
In this situation is the problem that the view model has been turned into Iemumerable?
Whats confusing is that for this to display in the index it had to be made Ienumerable but I am guessing the display view can use that?
Is that what it is saying? Do I need to create a new view model for the display view?