Click here to Skip to main content
15,900,686 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all ,

I am trying to learn advanced asp.net,but i am not able to understand it.I already developed 10 websites but they are beginners websites.I am trying to read books but i am not able to understand them.Knowing that i have passion in programming.For example i tried to understand why do we use interface in asp.net but i am not able to understand it.Also i tried to understand why do we use entity framework but also did not understand it.Please can anyone explain to me what does those 2 things do in a simple way without giving me links to articles that expects that all people are experts.?

Thanks.
Posted

Using Interfaces is part of the Object Oriented Programming paradigm. This is not easy to explain and if you did not understand all those books I doubt anyone here can fully explain it in a manner that you understand. You may simply be missing some necessary basic knowledge. I suggest you get some beginners books on programming and Object Oriented Design.
A good place to start is CodeProject though! There are quite some beginner articles. One that helped me out when I was just starting is How I explained OOD to my wife[^]. Another one, by the same author, is a follow-up and also a great help to understanding abstract concepts such as Interfaces: How I explained Design Patterns to my wife: Part 1[^]
Edit:
Another great introduction article on Object Oriented Design: Introduction to Object Oriented Programming Concepts (OOP) and More[^]

Now the Entity Framework is a whole different story. If you have build 10 websites, as you say, certainly you have used DataAdapters, CommandObjects, ConnectionObjects, DataTables, DataSets etc. to read and write data to your database. This can be a tiresome process and DataSets and DataTables are not type-safe. This means every value is an Object, which can result in wrong TypeCasts etc.
The Entity Framework takes a lot of that work from your hands (like any Object Relational Mapper or ORM)! It creates your Classes based on your database's metadata. So if you have a table Customer with the columns ID, Name, Address and VatNumber then the Entity Framework can generate a Customer Class with those columns as Properties and their correct .NET types (string, int, long etc.). However, this is not easy. So I suggest you start reading some beginner articles here too. I have found MSDN[^] to be a great resource. But I am sure you will find many great articles and resources by using Google :)
Hope it helps!
 
Share this answer
 
v2
Do the tutorials found on ASP.NET web site. You might not understand what you do at first but after doing a few of them, it should become clearer.

However, you might start by listening to a few videos a few times and after a while you will understand better how it works and then you might try some tutorials.

That web site has a lot of interesting articles, tutorials and videos.

http://www.asp.net/[^]
 
Share this answer
 
If you r suffering of the interface you can mail me on that email id piyushshrm211@gmail.com and after mail i will send you the interface related coding and many other things
 
Share this answer
 
Comments
Richard MacCutchan 9-Nov-11 4:38am    
Very clever posting your email here!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900