Hi,
Does LLBLGen when Querying the database by using QuerySpec and projection have any kind of cache?
On one place (let's call it A), we have code like this
var qf = new QueryFactory();
var query = qf.Create()
.Select(() => new Model A
{
mapping for Model A from VIEW X ... xFields.A , xFields.B, xFields.C ...
SubModel = new SubmodelA {
Z = entityFields.Z.ToValue ...
}
Quite simple.
In 2nd place (let's call it B), we have very similar code (similar end-result-model)
var qf = new QueryFactory();
var query = qf.Create()
.Select(() => new Model A
{
mapping... from TABLE Y .. yFields.A , yFields.B, yFields.C ...
WITHOUT SubModel
....
So, their common point is the creation of the same type of model (A).
Sorry, I cannot provide the exact code due to NDA, but I assure you that both pieces are straightforward, as presented above.
Our code is (rarely) throwing SQL exceptions on Code B, for property Z, which isn't used on that place at all and is "used" from a different view.
After restarting the IIS/application, everything works as expected, no further errors are thrown.
It seems like there is some sort of dynamic cache under the hood, which I can't figure out, fix, disable, or something.
I'm using LLBLGen 5.6.0 with PostgreSQL.
Can you assist me, with how to prevent this?
Thanks.