Category Archives: PetShop4.0

Pet Shop 4.0 – Abstract Factory Pattern

This is the last article about Pet Shop 4.0 source code. some other code such as singleton pattern will be too simple to explain. When BLL Layer to get data from database, Pet Shop 4.0 uses “Abstract factory pattern”. This … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – Abstract Factory Pattern

Pet Shop 4.0 – BreadCrumb

BreadCrumb is very simple part in Pet Shop 4.0 source code. “BreadCrumbControl.ascx” is main file and it is implemented in Master Template. add following code into “class BreadCrumbControl” in “Page_Load” function. 1 2 3 4 5 HtmlAnchor testAnchor = new … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – BreadCrumb

PetShop 4.0 – Authentication and Login (1)

PetShop 4.0 Authentication uses ASP.net build-in User Authentication. Let’s See where User Profile is firstly. Open PetShop 4.0 with Visual Studio. and Select Web Project Then select menu “WebSite” -> “ASP.net Configuration” The following question is where databases to get … Continue reading

Posted in PetShop4.0 | Comments Off on PetShop 4.0 – Authentication and Login (1)

Pet Shop 4.0 – DataBase Map to Object

Pet shop uses very simple to map database columns to objects. Here are database’s table: Take Production Table for example, dbo.Production will map to ProudctionInfo in PetShop.Model. 1 2 3 4 5 6 7 8 9 10 11 12 13 … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – DataBase Map to Object

Pet Shop 4.0 – CacheDependency and AggregateCacheDependency

CacheDependency is an important part in pet shop 4.0. Here is some example code on how to use CacheDependency 1. create a new xml file as following: 1 2 3 4 5 6 7 8 9 10 11 <?xml version="1.0"?> … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – CacheDependency and AggregateCacheDependency

Pet Shop 4.0 – SqlCacheDependency

Pet Shop uses SqlCacheDependency to syn with Database Table. On all supported versions of SQL Server (Microsoft SQL Server 7.0, Microsoft SQL Server 2000, and SQL Server 2005) the SqlCacheDependency class monitors a specific SQL Server database table. When the … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – SqlCacheDependency