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 | Oct 11, 2017 | Python Tutorial
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1=2 name1 = 'AAA' # cursor.execute('update info3 set name = ? where id = ?',(name1,id1)) cursor.execute('delete from info3 where id = ?',(id1,)) db.commit()...
by Yogesh | Oct 11, 2017 | Python Tutorial
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1 = 2 cursor.execute('select *from info3 where id=?',(id1,)) multiplerecord = cursor.fetchall() # print(singlerecord[1]) for row in multiplerecord: # print(row)...