8
Shouts

Get SQL Parameters From an Object Revisited. - .NET Development - Gal Ratner

published 820 days, 7 hours, 58 minutes ago posted by galratnergalratner 821 days, 14 hours, 56 minutes ago
Thursday, February 25, 2010 12:43:03 PM GMT Wednesday, February 24, 2010 5:45:57 AM GMT

I have my own custom data layer adapter. Its pretty slick and you probably know it by now if you read my blog post Move a DataReader to an Object with reflection Revisited. If you downloaded and are using the file ObjectHelper.cs you probably noticed a method called GetSQLParametersFromPublicProperties. This method returns an array of SqlParameters from a live object. You can use this array if you are invoking a Stored Procedure and need to send some parameters into it. Something like: publicint AddCust...

category: Architecture | clicked: 1 | | source: galratner.com | show counter code
tags: ADO.NET, data access pattern, Data Access Layer