Here is an example in the loquacious way using the ClassMapping
public sealed class MyEntityMap : ClassMapping<MyEntity> { public MyEntityMap () { Table("my_table"); Id(x => x.Id, a => { a.Column("my_id"); a.Generator(Generators.Sequence, g => g.Params(new { sequence = "my_sequence_generator" })); }); } }
Happy mapping ^^
No comments:
Post a Comment