Csharp Code Samples

Rohan’s Blog – C# .NET Programming
  • rss
  • Home
  • About
  • Search
  • Contact Me

Nhibernate Parent Child Relations

Rohan Warang | August 1, 2009

For almost every Nhibernate beginner the most challenging thing to do is implement a parent child or one to many relation. There are many articles about this on the net some very basic and some highly detailed. But most samples available do not run when you download them giving all sorts of Nhibernate errors, which well obviously make no sense to someone who is using Nhibernate for the first time.

So this is my attempt at building a small Nhibernate one to many sample that will hopefully run without any issues and help in implementing basic relations using Nhibernate.

Read the rest of this entry »

Comments
3 Comments »
Categories
Tutorials
Tags
Nhibernate, Parent Child
Comments rss Comments rss
Trackback Trackback

Update Panels and JSON Alternatives

Rohan Warang | June 1, 2009

In most asp.net applications users experience post backs as a result of submit action by the client browsers. These post backs can be quite annoying when just a small part of the page needs to be refreshed. Update panels are designed to perform partial post back eliminating the need for doing a complete post back for updating a part of the page.

But are these post backs truly partial? In this article we try to find out if Update panels actually improve performance by doing partial post backs or do they end up degrading it.

Read the rest of this entry »

Comments
1 Comment »
Categories
Optimization
Tags
Ajax, JSON, PageMethods, UpdatePanel
Comments rss Comments rss
Trackback Trackback

Preventing SQL Injection Using Linq

Rohan Warang | May 10, 2009

SQL injection is one of the most common hacking methods for websites where authentication is required for accessing the website content. In this article we try to verify if linq based data access layers are truly immune to SQL injection.

Read the rest of this entry »

Comments
4 Comments »
Categories
Tutorials
Tags
Inline Query, Lambda Expression, Linq, SQL injection
Comments rss Comments rss
Trackback Trackback

Configuring WCF Throttling Behaviors

Rohan Warang | April 27, 2009

Most WCF services hosted in a live environment if not configured for handling heavy simultaneous requests give a Denial of Service Error, better known as DoS attacks. To prevent these from happening we have to configure the throttling behavior and some attributes of the ServiceHost.

Read the rest of this entry »

Comments
2 Comments »
Categories
Optimization
Tags
Behavior, Microsoft, Throttling, WCF
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Subscribe

dZone

Categories

  • Optimization
  • Tutorials

Admin

  • Log in
Creative Commons License rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox