Skip to content

Instantly share code, notes, and snippets.

@gabrielpascua
Created April 20, 2012 21:18
Show Gist options
  • Select an option

  • Save gabrielpascua/2431962 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielpascua/2431962 to your computer and use it in GitHub Desktop.
IDbDataParameter usage for sql decimal output parameters
IDbDataParameter modifier = cmd.CreateParameter();
modifier.DbType = DbType.Decimal;
modifier.Precision = 3;
modifier.Scale = 2;
modifier.Direction = ParameterDirection.Output;
modifier.ParameterName = "@modifier";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment