ViewModel Example in asp.net MVC using Razor C#
View Model: View Model is middle layer of view and model. Some Question are emerge which are following Where I should put my presentation logic Where I should put my Data transmission logic How I can create a view with multiple models. Practical Implementation: Step...
Inheritance in Entity framework with example
Inheritance in EF Inheritance in entity framework ,it is a way to create relationships between database tables.For example primary key and foreign key relationship. Types of Inheritance TPH(Table per Hierarchy) TPC(Table per concrete) TPT(Table per Type) 1. TPH: It...
Entity Framework migration with example
Entity Framework migration with example This feature is introduced in EF 5 to overcome the problem of database Datainitilzers(Data was lost). We can make changes in database and able to revert back using migrations techniques. Example: Step 1. First we will create two...
Drag and Drop in HTML5 with example and explanation
Drag and Drop is strong UI concept through which user can easy to copy, reorder and deletion of items and contents with the help of mouse clicks. HTML 5 came up with a Drag and Drop (DnD) API that brings native DnD support to the browser making it much easier to...