Hi. I am evaluating your software and I must say that it looks like an awesome product!
I've played with a few of the templates, namely AllCommandWrappers and CommandWrapperClass. What I want to be able to do is create a wrapper class for all my stored procedures. I would like them to all be in one class and in one file. I noticed when I ran the ALLCommandWrappers it created a separate file for each stored procedure.
I've also noticed that these templates are in C# and I'm more of a VB .NET kind of guy. Do they offer VB .NET versions of these templates?
I've included a little sample of what I would like my class to look like.
Public Class DataAccessLayerPublic Shared ConnectionString As String = System.Configuration.ConfigurationSettings.AppSettings.Get("ConnectionString") Public Shared Function STIGetDifferentLumberTypes(ByVal @PurchaseOrderID As Integer, ByVal @ProductionID As Integer, ByVal @ReturnID As Integer, ByVal @TransactionID As Integer) As DataView'Retrieve the parameter setDim storedParams() As SqlParameter = New SqlParameter(3) {} storedParams = SqlHelperParameterCache.GetSpParameterSet(ConnectionString ,"STIGetDifferentLumberTypes")storedParams(0).Value = @PurchaseOrderIDstoredParams(1).Value = @ProductionIDstoredParams(2).Value = @ReturnIDstoredParams(3).Value = @TransactionIDDim ds As DataSetds = SqlHelper.ExecuteDataset(ConnectionString,CommandType.StoredProcedure,"STIGetDifferentLumberTypes", storedParams)Return ds.Tables(0).DefaultViewEnd Function
...End Class
Thanks for your help!
Currently, there is only the C# version of the CommandWrapper. I do think you could convert the CommandWrapperClassTemplate.cst to vb rather quickly and get the functionality you want.