Hi and very sorry,
here is my mapping:

public class BaseClassMap<T>:ClassMap<T> where T:AuditableDomain<T>
{
        public BaseClassMap()
       {
            Map(x => x.CreatedAt).Not.Nullable();
            Map(x => x.CreatedBy).Not.Nullable();
            Map(x => x.UpdatedAt);
            Map(x => x.UpdatedBy);
         }
}

public class TimeTableMapping: BaseClassMap<TimeEntry>
{
                public TimeTableMapping()
                {
                        Id(x => x.Id).GeneratedBy.GuidComb();
                        Map(x =>x.WorkDate).Not.Nullable();
                        Map(x =>x.WorkTime).Not.Nullable();
                        Map(x =>x.Job);

                        References(x => x.Employee);
                                                References(x =>
x.Project);
                                                SelectBeforeUpdate();
                                                DynamicUpdate();
                }
}

Peter



On 27 Mrz., 15:47, Fabio Maulo <fabioma...@gmail.com> wrote:
> mappings ?
>
> 2010/3/27 Peter Forstmeier <peter.forstme...@googlemail.com>
>
>
>
>
>
> > Hi,
> > from my Backend i get a disconneted  List<TimeEntryDto>.
> > While editing this list in a DataGrid i can handle 'Add' and 'Modify'
> > with 'select-before-update' for edit and check for an  empty ID for
> > Add and Insert.
> > But i have no way to handle deleted items. Did i have to use an
> > StateProperty(Enum) to do this task or is there any other way.
>
> > Thanks
> > Peter
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nhusers" group.
> > To post to this group, send email to nhus...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > nhusers+unsubscr...@googlegroups.com<nhusers%2bunsubscr...@googlegroups.com­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> Fabio Maulo- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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

Reply via email to