v2.5
I can change my connection string, but it seems that LLBLGen Pro generates code that hard codes the name of the database in the code. Is there a way around this? Here are some examples of where the database name is hardcoded:
Clearly I can change the connection string, but it still tried to use the database name that is generated (no matter which database I specify in my connection string).
''' <summary>Inits View's mappings</summary>
Private Sub InitAssy_Info_ViewTypedViewMappings()
MyBase.AddElementMapping( "Assy_Info_ViewTypedView", "WeldQA", "dbo", "vwAssy_Info", 15 )
''' <summary>
''' Calls stored procedure 'spInspectionsExist_WeldSpec_MigID'.<br/><br/>
'''
''' </summary>
''' <param name="weldSpec_MigId">Input parameter of stored procedure</param>
''' <param name="inspectionsExist">InputOutput parameter of stored procedure</param>
''' <returns>Amount of rows affected, if the database / routine doesn't surpress rowcounting.</returns>
Public Shared Function InspectionsExist_WeldSpec_MigId(weldSpec_MigId As System.Int32, ByRef inspectionsExist As System.Boolean) As Integer
' create parameters
Dim parameters() As SqlParameter = New SqlParameter(2 - 1) {}
parameters(0) = New SqlParameter("@WeldSpec_MigID", SqlDbType.Int, 0, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Current, weldSpec_MigId)
parameters(1) = new SqlParameter("@InspectionsExist", SqlDbType.Bit, 0, ParameterDirection.InputOutput, True, 1, 0, "", DataRowVersion.Current, inspectionsExist)
' Call the stored proc.
Dim toReturn As Integer = DbUtils.CallActionStoredProcedure("[WeldQA].[dbo].[spInspectionsExist_WeldSpec_MigID]", parameters, Nothing)
If Not parameters(1).Value Is System.DBNull.Value Then
inspectionsExist = CType(parameters(1).Value, System.Boolean)
End If
Return toReturn
End Function