Hi,
LLBLGen Pro 2.5 (23rd April)
DataAccessAdapter
SQL Server 2005
ASP.NET (C#)
I need to provide a custom connection string and catalog/schema name on a user-basis in a Asp.Net web application.
I tried to write a custom MyDataAccessAdapter() class that inerhits from DataAccessAdapter(). The constructor was:
public MyDataAccessAdapter(): base.(myConnStr)
{
this.CatalogNameOverwrite .....[etc...]
}
I set all my LLBLGenProDatasource2.DataAdapterTypeName ="....MyDataAccessAdapter, ...DataDBSpecific" (using LLBLGenProDatasource Configuration Window at design time in Visual Studio).
Visul Studio at Design time returns this error:
An Unhandled Exception has occured. MyDataAccessAdapter,[...complete namespace....] Could not be set on property AdapterTypeName
So it works at runtime but it doesn't work at design time in VS.
I tried to restart Visual Studio, clean and rebuild solution but it didn't help.
Was my approach (write e custom class that inerhits from DataAccessAdapter()) wrong?
thanks
Regards
Davide