Category Archives: Uncategorized

c# – NHibernate.MappingException: No persister for: XYZ

as screen dump show, build action of XYZ.hbm.xml should be ‘Embedded Resource’.

Posted in Uncategorized | Comments Off on c# – NHibernate.MappingException: No persister for: XYZ

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”

dbml and xsd

Two example will put here to demonstrate following question 1. how dbml visit database 2. how to update dbml is new columns are added 3. dbml updated when tables are deleted or updated.

Posted in Uncategorized | Comments Off on dbml and xsd

pet shop 4.0 – source code analysis

pet shop 4.0 is very classic important example. It is available under following url. http://www.microsoft.com/en-au/download/details.aspx?id=16693 More details will put here to analysis it.

Posted in Uncategorized | Comments Off on pet shop 4.0 – source code analysis

Asp.net OutputCache Example

Output Cache Will determine when page will refresh the following example shows that date time will be updated every 10 seconds, if client keeps on pressing F5 to refresh 1 2 3 4 5 6 7 8 9 10 11 … Continue reading

Posted in Uncategorized | Comments Off on Asp.net OutputCache Example