Generic Well Known Instances, loaded from the database

20 views
Skip to first unread message

Dietrich

unread,
Apr 29, 2011, 11:57:36 AM4/29/11
to uNhAddIns
I've got an application domain in which quite a few entities are
immutable for the lifetime of an application, but I want to manage
them in a database and not compiled them in code. For example, the
list of Employees and Departments. I also want to cut down on trips to
the database in general. There are many different entities in the
system that refer to these entities.

Has anyone attempted to use Generic Well Known instance types in this
fashion? Loading these entities from the database on application start
rather than hard coding them? Is there a different feature of
NHibernate or uNHaddins I should look at to help me with this?

Diego Mijelshon

unread,
Apr 29, 2011, 12:54:58 PM4/29/11
to unha...@googlegroups.com
That's not what well known instances are used for. Use caching instead.
 
    Diego

Dietrich

unread,
Apr 29, 2011, 1:42:57 PM4/29/11
to uNhAddIns
Caching as in 2nd level caching, or is there a 1st level cache that
exists outside of a session that I am unaware of?

Diego Mijelshon

unread,
Apr 29, 2011, 2:07:22 PM4/29/11
to unha...@googlegroups.com
2nd level.
1st level is just the session (identity map)
 
    Diego
Reply all
Reply to author
Forward
0 new messages