Ahh, now I see, Chris is quite right. Martin, you need to update the
ClassMaps for your entities.

    public class EmployeeMap : ClassMap<Employee>
    {
        public EmployeeMap()
        {
            Id(x => x.Id);
            Map(x => x.FirstName);
            Map(x => x.LastName);
            References(x => x.Store);

            Map(x => x.CreateDate);    <----- HERE
            Map(x => x.ChangeDate);   <----- HERE
        }
    }

If the example was using automapping instead of fluent mapping, then this
step wouldn't be necessary.

On Tue, Dec 15, 2009 at 5:17 AM, macap <[email protected]> wrote:

>
>
> On 14 Dez., 13:47, Chris C <[email protected]> wrote:
> > After adding the new fields did you update the mapping for the entity?
>
> What do you mean by "update the mapping for the entity"?
>
> As I wrote:
>
> So I changed my entities and added 2 new properties:
>
>        public virtual DateTime CreateDate { get; set; }
>        public virtual DateTime ChangeDate { get; set; }
>
>
> If that is what you mean, then I did it :-)
>
> Or do you mean the mapping from entity to sql-table?
> I thought this is done automatically by:
>    m.FluentMappings.AddFromAssemblyOf<Program>()
> ?
>
>
>
> Regards,
>
> Martin
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<fluent-nhibernate%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.


Reply via email to