Re: AW: AW: [gentle-devel] Using Views with Gentle
Brought to you by:
mnmr
From: Morten M. <mo...@me...> - 2005-04-15 14:11:25
|
Hi Alex, > Telling you when it is *not* called is kind of impossible. Actually, > it never got called. The process was this: :-) > Key key=new Key(typeof(Company), true, "CommonName", "Test"); > Broker.RetrieveInstance(typeof(Company), key); > > Seems natural that GetKey isnt called. At least I'm providing my own > keys. I only though the cache manager would call the GetKey-method to > retrieve the primary keys, which it doesnt. The cache is also used to cache non-persistent objects, but it seems reasonable to expect it to reuse any custom key definition. I'll look into this. > Really really usefull. Couldnt live without it. As I have written, I'm > currently optimizing my application. I simply look at the logfile and > try to avoid every query that is not necessary. While using > SkipQueryExecution, I also found a little thingy: > > Storing an SqlStatement in the cache fails with > NullReference-Exception if no type was provided in the constructor. > Without the type, the cache wont know how to store the entry, but one > could throw a nice formatted exception instead of an ugly > NullReference-Exception: Thanks, will look into this also. Yours, Morten |