This gonna be post series which I gonna continue .. Because this is bit complex and without theoretical part hard to understand.
Fist thing first.. Lets move with theoretical background of it with this post
Assume this scenario.. - Entire Post sequence will use this as example
There is student registration system we need to develop solution for student registration
Here is our usual MVC code.
public class Student
{
public int StudentId { get; set; }
public string StudentName { get; set; }
public string RegId { get; set; }
public int Age { get; set; }
...