steele27

Stories submitted by steele27

Using Common Table Expressions for hierarchical data in NHibernate(refactoringaspnet.blogspot.com)

submitted by steele27steele27(115) 1 year ago

NHibernate has no support for hierarchical queries. To get all descendents of a tree node, we have to do a recursive N+1 query. But by using Common Table Expressions (CTE) we can solve this very elegantly. read more...

add a comment |category: |Views: 33

tags: another

Very simple C# code to do HTTP GET and POST request of web forms(refactoringaspnet.blogspot.com)

submitted by steele27steele27(115) 2 years, 1 month ago

This post shows how to very easily and simply do HTTP GET and POST requests from C# code, without having to use the messy HttpWebRequest and HttpWebResponse objects. It extends the HtmlAgilityPack and encapsulates the saving and posting of cookies and html form elements. read more...

add a comment |category: |Views: 83

tags: another

Unit testing code which is dependent on current DateTime(refactoringaspnet.blogspot.com)

submitted by steele27steele27(115) 2 years, 3 months ago

How to implement a quick framework which enables writing unit tests for methods which depends on current date, with minimal changes to existing code. read more...

add a comment |category: |Views: 9

tags: another

How to get the Content Type (MimeType) of a file in C#(refactoringaspnet.blogspot.com)

submitted by steele27steele27(115) 3 years, 6 months ago

This blog post discribes 2 methods to get the content type of a file in C# read more...

add a comment |category: |Views: 636

tags: another

How To Create a FTP Connection Pool in C#(refactoringaspnet.blogspot.com)

submitted by steele27steele27(115) 4 years, 1 month ago

A very simple approach to create a FTP connection pool in C# using the Object Pool Pattern. read more...

add a comment |category: |Views: 325

tags: another

New Orcas Language Feature: Extension Methods(weblogs.asp.net)

submitted by steele27steele27(115) 5 years, 2 months ago

Extension methods allow developers to add new methods to the public contract of an existing CLR type, without having to sub-class it or recompile the original type. Extension Methods help blend the flexibility of "duck typing" support popular within dynamic languages today with the performance and compile-time validation of strongly-typed languages. read more...

add a comment |category: |Views: 77

tags: another