-
Recent Posts
Recent Comments
Archives
- May 2024
- October 2023
- September 2022
- November 2021
- May 2021
- April 2021
- January 2021
- February 2020
- May 2019
- August 2018
- July 2018
- April 2018
- December 2017
- November 2017
- October 2017
- June 2017
- May 2017
- April 2017
- February 2017
- December 2016
- September 2016
- July 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
Categories
Meta
Monthly Archives: December 2015
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
Umbraco – How to build Umbraco
1. Download Umbraco from github 2. %path%\Umbraco-CMS-dev-v7\build run “build.bat” 3. open %path%\src\umbraco.sln 4. build and run umbraco. It will setup database. The database only has table without view and stored procedure.
Posted in Umbraco
Comments Off on Umbraco – How to build Umbraco
WCF – Ajax Calling WCF Services
This is will demo a simple example on how Ajax calling WCF Services. see what does it look like? 1. define service data contract 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 … Continue reading
Posted in WCF
Comments Off on WCF – Ajax Calling WCF Services
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
Pet Shop 4.0 – Encrypt WebConfig section and Decrypt WebConfig Section “ConnectionString”
As we know, ConnectionString contains User Name and Password. for security reason, Connection String needed to be Encrypted. Here is sample code in Pet Shop. EncryptWebConfig.bat @echo off C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef “connectionStrings” “C:\Program Files\Microsoft\.NET Pet Shop 4.0\Web” PAUSE DecryptWebConfig.bat @echo off … Continue reading
Posted in Uncategorized
Comments Off on Pet Shop 4.0 – Encrypt WebConfig section and Decrypt WebConfig Section “ConnectionString”