ThatRendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 302 forks source link

Allow adapter to build Procedure command parameters #107

Closed richardhopton closed 13 years ago

richardhopton commented 13 years ago

In SqlServer and SqlAnywhere there is a provider specific CommandBuilder which call fully populate a Command with all the parameters including SqlDbType/SADbType, Size, Scale, Precision, Direction and any other provider specific properties. With this in mind instead of creating all the parameters in ProcedureExecutor.SetParameters it should defer this responsibility to the adapter (Perhaps a new ICommandParameterBuilder interface) and only rely on SetParameters to set the Parameter values.

richardhopton commented 13 years ago

I think the solution in place by my commit is sufficient to close this issue.