Tag Archives: asp.net

Microsoft Entity Framework

  • entity1
  • entity2
  • entity3
  • entity4
  • entity5
  • entity6
  • entity7
  • entity8
  • entity9
  • entity10
The Microsoft Entity Framework is an Object Relational Mapping (O/RM) tool that enables you to generate a data access layer from a database automatically. The Entity Framework enables you to avoid the tedious work of building your data access classes by hand.
** Alternatives to Entity Framework – Microsoft LINQ to SQL, NHibernate, or SubSonic
Sample Project – MVC with Entity Framework
Final Output
After Creation MVC project from the Project Template- Create Entity Data Model-from an Exiting Database in SQL- Click Add New Item from Model- Select ADO.NET Entity Data Model.
Select Genearate from Model
In Order to Access the Existing Database – provide the Database Connection
Select the Tables to include in Entity Model and Give a Namespace
Select the Entity and Verify the Entity Type Name and See if its made Plural, you can change it to Singular
Right Click on Model Window and Verify the Namespace
Go to the Controller- Verify the Namespaces, Create a Constructor to Initialize The Entity, In the the Corresponding Action,Fetch  the Data using Entity and Assign it to Model
In the View- the Page Inherits from the Specific Model
When we add an Entity Model, it makes an entry into the Web.config


Source - http://www.asp.net/mvc/mvc3#overview

ASP.NET MVC 3 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the .NET Framework.


  • Integrated Scaffolding system extensible via NuGet
  • HTML 5 enabled project templates
  • Expressive Views including the new Razor View Engine
  • Powerful hooks with Dependency Injection and Global Action Filters
  • Rich JavaScript support with unobtrusive JavaScript, jQuery...
Read more

Technical Questions

  • What is View State? Why it is used ?
  • What are the various techniques to send data from one page to another?
  • Difference between InProc and OutofProc?
  • What is server.Transfer and in what scenarios we use it?
  • Difference Between  NTier architecture, an event driven architecture?
  • What is Impersonation?
  • What is the base Class in Asp.net?
  • Asp.net Webpage Inherit from Which Class...
Read more