public class RacedayMap : ClassMap<Raceday>
    {
        public RacedayMap()
        {
            Id(x => x.RacedayID).Column("RacedayID");
            Map(x => x.RacedayNr);
            Map(x => x.RDate);
            Map(x => x.TrackCond);
            Map(x => x.TrackValue);
            Map(x => x.Weather);

            References(x => x.Track).Column("TrackID").Cascade.All();
            HasMany(x => x.Races)
                .Cascade.All()
                .Not.LazyLoad()
                .Inverse()
                .AsList()
                .Access.CamelCaseField(Prefix.Underscore);
        }
    }

It's 1 to 1 mapping with DB, if I set RDate property BEFORE attaching
to session it works fine. I could probably make a small test project
if that would help...

On 14 Okt, 17:49, Aaron Fischer <[email protected]> wrote:
> can we see your mapping and table schema

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to