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 6c1df20 commit bf983fdCopy full SHA for bf983fd
src/FluentNHibernate/Conventions/Instances/CollectionInstance.cs
@@ -173,6 +173,14 @@ void ICollectionInstance.AsBag()
173
void ICollectionInstance.AsList()
174
{
175
mapping.Collection = Collection.List;
176
+ if (mapping.Index == null)
177
+ {
178
+ var indexMapping = new IndexMapping();
179
+ var columnMapping = new ColumnMapping();
180
+ columnMapping.Set(x => x.Name, Layer.Defaults, "Index");
181
+ indexMapping.AddColumn(Layer.Defaults, columnMapping);
182
+ mapping.Set(x => x.Index, Layer.Defaults, indexMapping);
183
+ };
184
}
185
186
void ICollectionInstance.AsMap()
0 commit comments