LLBLGen pro 2.6 final.
Visual Studio 2008 .NET 3.5 framework
Hello
i'm a newbie to LLBLGen pro .
I have a project to implement and i'm curently using Adapter template. I have a table "numberings" and all other tables in my database get id's from this table.
I prefer to implement this logic with custom code in my entities or better in CommonEntityBase class, rather than using triggers in a database.
In particular when i insert a new entity in "beforeSave event", i want to query "numberings" table and get the current value. Then i want to increase that value and update back the new value to "numberings" table and then set the "entity.id" with the value from "numberings". Then continue saving the new Entity.
By searching the forum i figured out that i can't access the DataAccessAdapter inside an Entity...
What do you suggest as best solution for my case??
thanks in advance