Hello Steve,
considering that a new connection is created I was expecting that it would work independent if the last inaction was 1 minute or 1 day ago. This is the code piece where the error is thrown.
In order to reproduce the problem I can start the program and wait 24h before I execute the same steps as the customer. Or there is a different way (but it looks like that there is not).
Restarting the program could be done by the task scheduler, but its more a workaround than a solution...
Niko
using (var fbCon = DatabaseHelper.CreateOpenFbConnection())
{
ressourcen = fbCon.Query<dtoRessource>(sb.ToString(), new { startdatum = this.StartDatum, stopdatum = this.StopDatum }).ToList();
}
public static FbConnection CreateOpenFbConnection()
{
var result = new FbConnection(AppGlobals.fbConnectionString);
result.Open();
return result;
}