We have a project running:
LLBLGen 2.6
SelfServicing (Two Classes)
SQL Server 2012
I tried updating it to:
LLBLGen 5.4.3 from Nuget.
SelfServicing (Two Classes)
SQL Server 2012
It seemed to be running fine but then I noticed that in the LLBLGen 5.4 version. The InsertEntity and UpdateEntity don't get called at all.
I debugged through the code and it hit these breakpoints (in this order):
public override bool Save(IPredicate updateRestriction, bool recurse)
protected override void OnSave()
protected override void OnTransactionCommit()
but never goes into:
protected override bool InsertEntity()
protected override bool UpdateEntity()
The entity is being saved using:
try
{
request.Save(true);
}
catch (Exception e)
{
}
There are some null value checks, property changes, etc that would always run whenever this entity gets saved. It sometimes gets saved as part of a collection and not on it's own and that is why it was put in the InsertEntity and UpdateEntity and not in the Save.
Any idea why the InsertEntity and UpdateEntity would not be called?