by Yogesh | Oct 15, 2017 | Asp .net MVC
What is Caching Ø Caching provides a way of storing frequently accessed data and reusing that data. ØImprove performance of web application using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace...
by Yogesh | Oct 14, 2017 | Asp .net MVC, Entity Framework Tutorial
What is Repository Pattern 1.reduces repetitive code and separates the Data Access and Business Logic Used for resuability 2.Easy for further changes. How to implement Repository Pattern 1.Create an interface.- Define all CRUD functions for 2.A class implement...
by Yogesh | Oct 13, 2017 | Asp .net MVC
What is singleton pattern 1.A class Object having only one instance and able to perform all task. 2.This design pattern is considered as creational(object creation) design pattern. 3.No constructor parameters are allowed while creating an instance. How to implement...
by Yogesh | Apr 14, 2017 | Asp .net MVC
Employee Model Class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace VMEx.Models { public class Employee { public int empid { get; set; } public string Employeename { get; set; } public string empfathername { get; set;...
by Yogesh | Mar 1, 2017 | Asp .net MVC
How to retrieve query string parameter in action.- By passing action argument as Query string parameter public ActionResult Index(string urlparameter) { return Content("Your Url parameter is " + urlparameter); } By ID Parameter: ASP.NET MVC’s default routing...
by Yogesh | Feb 23, 2017 | Asp .net MVC
Today we are going to discuss a very important concept of MVC 5 and Web API 2 that is attribute routing. Attribute routing is used to define various attributes routing URL over controller and actions level. Up to mvc4 we learned about convention based routing. To...