I've been looking for a long time why the code reacts like this.
LLBLGen Pro Runtime Framework
with LLBLGenPro V5.8.1
SelfServicing.TowClasses
With visual Studio 2017
Framework  .NET 4.6.1
Here is my code:
    Estimation.Business.DaoClasses.CommonDaoBase.ActualConnectionString = "data source=PC-PIERRE\SQLEXPRESSDEV;initial catalog=Expertisa;integrated security=SSPI;persist security info=False"
    Dim item As New Estimation.Business.EntityClasses.ItemEntity(17162) ' 
    Dim str as String = item.Code
it doesn't matter if I put "catalog=Expertisa", my returned entity always comes from the "ESTIMATION2" database
what am I missing? 
How can I correct the problem by knowing the cause?
The database on which the entity connects is the same as my project "Estimation.Business.llblgenproj"