Controllers Programming in AngularJS with example
Controllers Programming in AngularJS What is MVC ARCHITECTURE? Model : Logic that deals with storing or retrieving data is part of the model. View : Logic that deals with formatting the data to display to the user is part of the view. Controller The controller sits...
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...