1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using FluentNHibernate.Mapping;
- using WhiteNoise.Domain.Entities;
- namespace WhiteNoise.Domain.Mapping
- {
-
-
-
- public class PacketMap : ClassMap<Packet>
- {
-
-
-
- public PacketMap()
- {
- this.Table("packet");
- this.LazyLoad();
-
- this.Id(x => x.Id, "id")
- .CustomSqlType("Serial")
- .GeneratedBy.Native();
-
- this.Map(x => x.Type, "type")
- .Not.Nullable();
- this.Map(x => x.Data, "data")
- .Nullable();
- }
- }
- }
|