The Artima Developer Community
Sponsored Link

.NET Buzz Forum
SQL Injection attacks & O/R mapping

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Udi Dahan

Posts: 882
Nickname: udidahan
Registered: Nov, 2003

Udi Dahan is The Software Simplist
SQL Injection attacks & O/R mapping Posted: Sep 30, 2006 2:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Udi Dahan.
Original Post: SQL Injection attacks & O/R mapping
Feed Title: Udi Dahan - The Software Simplist
Feed URL: http://feeds.feedburner.com/UdiDahan-TheSoftwareSimplist
Feed Description: I am a software simplist. I make this beast of architecting, analysing, designing, developing, testing, managing, deploying software systems simple. This blog is about how I do it.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Udi Dahan
Latest Posts From Udi Dahan - The Software Simplist

Advertisement
You've probably never thought of SQL Injection Attacks and O/R mapping in the same context. I know I haven't, that is, until today. I saw Scott's post on how to "Guard Against SQL Injection Attacks" and started wondering how long it's been since I've given it any thought. Then I realized that it was around the same time I switched to O/R mapping.

Since data received from the user is put in domain objects, and then those objects are mapped to tables (or views) in the database, the O/R mapper just handles it all for me. I assume that all the mappers out there use parameterized SQL, but I know for sure that NHibernate does (from peeking at the logs every once in a while).

Anyway, just wanted to mention this added side benefit of moving to the Domain Model pattern - no more SQL injection worries.

Read: SQL Injection attacks & O/R mapping

Topic: Zune launch details Previous Topic   Next Topic Topic: Add Drag-and-Drop Magic to Your Web Pages Using Microsoft AJAX Library

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use