ASP.NET Interview Questions and Answers (1544) - Page 51

State a simple difference between a Skin and a Theme ?

Skin :-
Skin is a file that defines the visual appearance of a particular control. we can create a Skin file for the GridView control that defines the look of the GridView for different SkinIDs.

Theme :-
Theme is a collection of Skins.


Thanks and Regards
Akiii
What is the main role of Entity Client Data Provider ?

The main role of the Entity Client Data Provider is to convert Entity SQL queries into SQL query which is understood by underlying database.

It communicates with ADO.Net data provider which in turn sends or retrieves data from the database.


Thanks and Regards
Akiii
What are the 3 things that are contained in EDM (Entity Data Model) ?

Conceptual Model: Conceptual model is your model classes and their relationships. All the tables in the database are mapped into entities here.

Storage Model: Storage model is your database design model which includes tables, views, stored procedures and their relationships and keys.

Mapping: Mapping consist information about how your conceptual model is mapped to storage model like nvarchar type is mapped into string type in the conceptual model.


Thanks and Regards
Akiii
Briefly describe the ObjectContext class ?

ObjectContext class represents EntityContainer which you can see from XML view of Model1.edmx or from EDM property window. You can call this as context class.

This is the primary class for interacting with entity objects and database. An instance/object of the ObjectContext class encapsulates the connection to the database, metadata that describes the model, and an ObjectStateManager object that tracks objects during create, update, and delete operations.

With the help of this class you can access all the tables and columns in the underlying database.


Thanks and Regards
Akiii
What is a Scalar and Navigation property in Entity framework ?

Scalar property are properties whose actual values are contained in the entity. A property of an entity that maps to a single field in the storage model.
E.g. Student entity has scalar properties e.g. StudentId, StudentName. These correspond with the Student table columns.

Navigation property is used to navigate through relations in data. It allows you to navigate from one entity to a "connected" entity.
E.g. if a user is connected to a role, you can use the "Role" navigation to read and inspect the role associated with that user. Basically it is equivalent to a foreign key relationship in a database.


Thanks and Regards
Akiii
What do you mean by Code First Approach in Entity Framework ?

In Code First approach you write your POCO classes first and then create database from these POCO classes.

Developers who follow the path of Domain-Driven Design (DDD) principles prefer to begin by coding their classes first and then generating the database required to persist their data in it.

In Code First approach, you avoid working with visual model designer (EDMX) completely.



Thanks and Regards
Akiii
What is mean by Model First development in Entity Framework ?

In Model First approach, you first create Entities, relationships, and inheritance hierarchies directly on the design surface of EDMX.

You have to select 'Empty model' when you add ADO.NET Entity Data Model in the project.

By this, we generate a DDL and we execute this DDL against the database to create the tables and associations/relations from the EDMX file.

Thanks and Regards
Akiii
Page_Init event occurs only when the first time the page is started. True or False ?

NOTE: This is objective type question, Please click question title for correct answer.
Controls and View State are not fully loaded in the Page_Load event. True or False ?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories