Automapping a Composite Model with Composite Iteration with FluentNhibernate
问题 I have a tree structured model and designed it with composite Pattern. for iterating through the entire hierachy Im using Composite Iteration. I have used this tutorial: http://www.blackwasp.co.uk/Composite.aspx but when I want to AutoMap the model, I encounter this problem: {"The entity '<GetEnumerator>d__0' doesn't have an Id mapped. Use the Id method to map your identity property. For example: Id(x => x.Id)."} but getEnumerator is a method. I don't know why handle this like an Entity!!