[fluent-nhib] Disallowed property names

2010-03-04 Thread adrianhara
Hi, I've searched a bit but haven't turned up anything, so here goes: are there any disallowed/restricted property names on the mapped entities? For example, I have a class that has a property named "End" of type "DateTime" and another one named "Start". The unit test exporting the schema ( new S

[fluent-nhib] Re: Lazy Load question

2010-02-28 Thread adrianhara
lid to turn off lazy loading of a class, but leave lazy loading > for one of its collections on. This would allow you to avoid: > a) having to make all your members virtual, > b) pulling half the database down from a single entity load :) > > On Sat, Feb 27, 2010 at 12:01 AM, adrian

[fluent-nhib] Lazy Load question

2010-02-26 Thread adrianhara
Hi, A short question about lazy loading. Until today I had thought that settings this.Not.LazyLoad() on a class mapping would effectively disable lazy loading on its associations (HasMany() mappings). However it doesn't seem to be the case, I have to also call HasMany(...).Not.LazyLoad(). Is this

[fluent-nhib] Re: Map read-only property with different field name

2010-02-18 Thread adrianhara
ead of a copy of the list? That way the > signature rather than the name of the property indicates the kind of actions > they can take on it. > > On Thu, Feb 18, 2010 at 8:52 AM, adrianhara wrote: > > > Hi guys, > > > Is it possible to map this? > > >

[fluent-nhib] Map read-only property with different field name

2010-02-18 Thread adrianhara
Hi guys, Is it possible to map this? class Foo { private IList bars; public IList BarsCopy { get { return bars.ToList();} } public void AddBar(Bar newBar) { bars.Add(newBar); } public void RemoveBar(Bar bar) { bars.Remove(bar); }

[fluent-nhib] Re: Updating parent with single assigned identifier leaves orphaned children

2010-02-17 Thread adrianhara
arent); } else { return repository.Save(parent); } } Which is kind of "sub-optimal" :). So if you know a better way, please share... On Feb 17, 6:50 pm, adrianhara wrote: > Hi, > > I can't figure out ho

[fluent-nhib] Updating parent with single assigned identifier leaves orphaned children

2010-02-17 Thread adrianhara
Hi, I can't figure out how to get rid of the following behavior: I have an entity, say Parent, which has an signle assigned identifier (so that there'll always be one single record in the corresponding database table) and a collection (IList<>) of Child entities. Parent is mapped with "HasMany(x

[fluent-nhib] Mapping IDictionary>?

2010-02-17 Thread adrianhara
Hi, Is it possible, using fluentNH (or NH), to map this: public class ParentEntity : EntityBase { private IDictionary> children; } The EntityBase class defines and Id and stuff, it's the dictionary mapping that I don't know how to do... Thanks, Adrian -- You received this