We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b95151 commit 97aa837Copy full SHA for 97aa837
src/FluentNHibernate.Testing/DomainModel/Mapping/OneToManyTester.cs
@@ -277,6 +277,20 @@ public void CanSpecifyIndexColumnAndTypeForList()
277
.Element("class/list/index/column").HasAttribute("name", "ListIndex");
278
}
279
280
+ [Test]
281
+ public void CanSpecifyIndexBaseOffsetAndColumnForList()
282
+ {
283
+ new MappingTester<OneToManyTarget>()
284
+ .ForMapping(map => map.HasMany(x => x.ListOfChildren)
285
+ .AsList(index =>
286
287
+ index.Base(1);
288
+ index.Column("ListIndex");
289
+ }))
290
+ .Element("class/list/list-index").HasAttribute("base", 1)
291
+ .Element("class/list/list-index/column").HasAttribute("name", "ListIndex");
292
+ }
293
+
294
[Test]
295
public void CanSetTableName()
296
{
0 commit comments