Vijay wrote:
Say I am using LLBLGenPro to retrieve some information from the database. Obviously in the first call, the SQL will hit the database and it will load the results into LLBLGenPro memory.
My question is that, for subsequent requests does it hit the database or does it hit the memory? – Like I requested 100 rows as part of a select, the next time I do the same select using LLBLGenPro syntax, and methods, will it hit the database?
Can LLBLGenPro be used as a caching layer between the database and the app server? – If so, how is this done?
You definitely can use LLBGLGen as a caching layer, but I don't think it will do any of this work automagically for you.
Certainly by default, if you use LLBLGen to requery the DB, it will hit the database.
You may wish to have a look at PostSharp as an additional framework to fold caching patterns into your architecture.