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 40fe0d4 commit 6c1df20Copy full SHA for 6c1df20
src/FluentNHibernate.Testing/ConventionsTests/ApplyingToModel/HasManyCollectionConventionTests.cs
@@ -199,7 +199,19 @@ public void ShouldSetTableNameProperty()
199
200
VerifyModel(x => x.TableName.ShouldEqual("xxx"));
201
}
202
+
203
+ [Test]
204
+ public void ShouldChangeCollectionTypeToList()
205
+ {
206
+ Convention(x => { x.AsList(); x.Index.Column("position"); } );
207
208
+ VerifyModel(x =>
209
210
+ x.Collection.ShouldEqual(Collection.List);
211
+ x.Index.ShouldNotBeNull(); // a list without index will result in wrong xml
212
+ });
213
+ }
214
215
#region Helpers
216
217
private void Convention(Action<ICollectionInstance> convention)
0 commit comments