Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » Utilities » Downloads
 
Add your own
alternative version

SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET

, 7 Dec 2002 BSD
This a small tool that will generate static methods in a class that acts as wrapper for SQL stored procedures. It either outputs a source file or a compiled assembly. Also supports automatic DataSet generation.
dbhelper-1.0.zip
DBHelper
CVS
Base
Baserev
Entries
Repository
Root
DBHelper.suo
DBHelper.vssscc
SP
CVS
Base
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
SPTestApp
App.ico
CVS
Base
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.1.zip
Baserev
Entries
Repository
Root
DBHelper.suo
DBHelper.vssscc
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.2.zip
Baserev
Entries
Repository
Root
DBHelper.suo
DBHelper.vssscc
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.3.zip
Baserev
Entries
Repository
Root
DBHelper.suo
DBHelper.vssscc
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.4.zip
Baserev
Entries
Repository
Root
dbh.gif
DBHelper.suo
DBHelper.vssscc
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.5.demo.zip
SPTestApp.exe
DBHelper.dll
Interop.MSDASC.dll
dbhelper-1.5.src.zip
Baserev
Entries
Repository
Root
dbh.gif
DBHelper.suo
DBHelper.vssscc
Baserev
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-1.6.demo.zip
SPTestApp.exe
DBHelper.dll
Interop.MSDASC.dll
dbhelper-1.6.src.zip
Baserev
Entries
Repository
Root
dbh.gif
DBHelper.suo
DBHelper.vssscc
Baserev
Diff
Entries
Repository
Root
DBHelper.csproj.user
DBHelper.csproj.vspscc
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
SPTestApp.csproj.vspscc
dbhelper-16demo.zip
SPTestApp.exe
DBHelper.dll
Interop.MSDASC.dll
dbhelper-16src.zip
Baserev
Entries
Repository
Root
dbh.gif
Baserev
Entries
Repository
Root
DBHelper.csproj.user
App.ico
Baserev
Entries
Repository
Root
SPTestApp.csproj.user
using System;
using System.Data;

namespace DBHelper
{
   public class TypeMapping 
   {
      static SqlDbTypeToTypeAssociation map;

      public static SqlDbTypeToTypeAssociation Mapping 
      {
         get {return map;}
      }

      static TypeMapping()
      {
         map = new SqlDbTypeToTypeAssociation();
         map.Add(SqlDbType.BigInt, typeof(Int64));
         map.Add(SqlDbType.Binary, typeof(Array));
         map.Add(SqlDbType.Bit, typeof(Boolean ));
         map.Add(SqlDbType.Char, typeof( String ));
         map.Add(SqlDbType.DateTime, typeof( DateTime ));
         map.Add(SqlDbType.Decimal, typeof( Decimal ));
         map.Add(SqlDbType.Float, typeof( Double ));
         map.Add(SqlDbType.Image, typeof( Array));
         map.Add(SqlDbType.Int, typeof( Int32 ));
         map.Add(SqlDbType.Money, typeof( Decimal)); 
         map.Add(SqlDbType.NChar, typeof( String ));
         map.Add(SqlDbType.NText, typeof( String ));
         map.Add(SqlDbType.NVarChar, typeof( String ));
         map.Add(SqlDbType.Real, typeof( Single ));
         map.Add(SqlDbType.SmallDateTime, typeof( DateTime ));
         map.Add(SqlDbType.SmallInt, typeof( Int16 ));
         map.Add(SqlDbType.SmallMoney, typeof( Decimal)); 
         map.Add(SqlDbType.Text, typeof( String ));
         map.Add(SqlDbType.Timestamp, typeof( DateTime ));
         map.Add(SqlDbType.TinyInt, typeof( Byte ));
         map.Add(SqlDbType.UniqueIdentifier, typeof( Guid ));
         map.Add(SqlDbType.VarBinary, typeof( Array ));
         map.Add(SqlDbType.VarChar, typeof( String ));
         map.Add(SqlDbType.Variant, typeof( Object  ));
      }
   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License

Share

About the Author

leppie
Software Developer
South Africa South Africa
No Biography provided
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 8 Dec 2002
Article Copyright 2002 by leppie
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid