by Yogesh | Oct 22, 2017 | Asp .net MVC
Example of RadioButtonfor helper with entity framework HtmlHelper class include two extension methods to generate a element in a razor view: RadioButton() and RadioButtonFor(). RadioButton() method Signature: MvcHtmlString RadioButton(string name, object value, bool...
by Yogesh | Oct 22, 2017 | Asp .net MVC, Entity Framework Tutorial
Example of Checkboxfor helper with entity framework Html helper class have two methods to generate checkboxes( Checkbox() –Loosely Typed MvcHtmlString CheckBox(string name, bool isChecked, object htmlAttributes) Checkboxfor() –Strongly Typed (It...
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...