I recommend you to read the following tutorials to gain detailed understanding about how these things work.
The above tutorial gives you step-by-step instructions to build a complete .Net project with a relatively simple data model. Once you have learned this, make sure you go through the following to make sure you understand the advanced data model scenarios.
Hope this helps