1) Solution 1 might help you if you want to learn entity framework, which is an object-relational mapping framework for ADO. NET.
Maybe you could start by reading this:
http://en.wikipedia.org/wiki/Entity_Framework[
^]
2) The source code you provided has nothing to do with entity framework.
It just shows a class definition and how to create an object as well as setting a property.