In some MVC Examples(Code First Approach), during defining the class for Databace, I found the statement like as
"Public Virtual <classname> Identifier{get;set;}", or "Public Virtual ICollection<classname> Identifier{get;set;}".
Can any one tell me the exact use of using such kind of statements with Virtual Keyword..
pavankumarmc...
Member
7 Points
97 Posts
Use of Virtual Keyword in defining the Class
May 05, 2012 09:33 AM|LINK
Hi all,
In some MVC Examples(Code First Approach), during defining the class for Databace, I found the statement like as
"Public Virtual <classname> Identifier{get;set;}", or "Public Virtual ICollection<classname> Identifier{get;set;}".
Can any one tell me the exact use of using such kind of statements with Virtual Keyword..
Example:http://gentlelogic.blogspot.in/2012/03/entity-framework-code-first-first.html
Thanks in advance...