Automapping - eager loading some classes
I'd like to override automapping to mark some (but not all) classes as to be eager loaded by default? Are there any samples available that show how to do that?
Thanks!
2 people watching.
-
New Issue
-
Conversation Started
The Fluent NHibernate staff has started a conversation to resolve this discussion.
-
Close the discussion Close the discussion
Private Permissions
This discussion is private. Only you and Fluent NHibernate support staff can see and reply to it.
Recent Discussions
09 Dec, 2010 09:42 AM | Property formula is not working. | |
08 Dec, 2010 05:24 PM | Setting length on composite -key property | |
02 Dec, 2010 09:33 PM | Setting Component as Unique Key | |
02 Dec, 2010 07:29 PM | Conventions for ICompositeUserTypes and field overrides | |
26 Nov, 2010 01:24 PM | Maping details collection using interface for detail |
22 Nov, 2010 09:59 PM | Mapping a view without a unique id column | |
22 Nov, 2010 09:27 PM | <many-to-one> and access setting | |
18 Nov, 2010 03:32 PM | Control the name of the Primary Key and Unique Constraint Names | |
18 Nov, 2010 03:00 PM | ForeignKeyConstraintName for References | |
14 Nov, 2010 12:40 PM | SQLite Versioning Configuration Question |
Support Staff 2 Posted by Paul Batum on 25 Sep, 2010 10:31 PM
public class PersonMappingOverride
: IAutoMappingOverride<Person>{
public void Override(AutoMapping<Person> mapping)
{ mapping.HasMany(x => x.Orders)
.Not.LazyLoad();
}}
See: http://wiki.fluentnhibernate.org/Auto_mapping#Overrides
You might want to specify the fetch type as well, such as:
.Fetch.Join()
On Wed, Sep 15, 2010 at 12:12 PM, Simon <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote: