My favorites | Sign in
Logo
rmh
             
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using FluentNHibernate.Mapping;
using RMH.Entities;

namespace RMH.DataAccess.Mappings
{
public class StayMap: ClassMap<Stay>
{
public StayMap()
{
Id(x => x.Id);
Map(x => x.HospitalUnit);
Map(x => x.HospitalRoomNumber);
Map(x => x.HospitalPhoneNumber);
Map(x => x.MedicaidNumber);
Map(x => x.SocialWorkerName);
Map(x => x.CheckinDate);
Map(x => x.CheckoutDate);
Map(x => x.CheckinBy);
Map(x => x.CheckoutBy);
Map(x => x.PreauthorizationSentDate);
Map(x => x.PreauthorizationApprovedDate);

References(x => x.Patient).Cascade.SaveUpdate().FetchType.Join();
References(x => x.Room).Cascade.SaveUpdate();
References(x => x.Payment).Cascade.SaveUpdate();

DynamicInsert();
DynamicUpdate();
}
}
}
Show details Hide details

Change log

r2 by ignu.smith on Apr 26, 2009   Diff
Initial Commit after Lansing Give Camp
Go to: 
Sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 985 bytes, 31 lines
Hosted by Google Code