Skip to content

Commit

Permalink
fixed: changing bag to list in convention
Browse files Browse the repository at this point in the history
  • Loading branch information
firo222 committed Sep 19, 2011
1 parent 6c1df20 commit bf983fd
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -173,6 +173,14 @@ void ICollectionInstance.AsBag()
void ICollectionInstance.AsList()
{
mapping.Collection = Collection.List;
if (mapping.Index == null)
{
var indexMapping = new IndexMapping();
var columnMapping = new ColumnMapping();
columnMapping.Set(x => x.Name, Layer.Defaults, "Index");
indexMapping.AddColumn(Layer.Defaults, columnMapping);
mapping.Set(x => x.Index, Layer.Defaults, indexMapping);
};
}

void ICollectionInstance.AsMap()
Expand Down

0 comments on commit bf983fd

Please sign in to comment.