public void Apply(FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance instance)
 {
     instance.Generic();
     instance.LazyLoad();
     instance.Fetch.Select();
     instance.BatchSize(10);
 }
 public void Apply(FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance instance)
 {
     instance.Key.Column(instance.EntityType.Name + "Id");
     instance.Key.ForeignKey(instance.EntityType.Name+"_"+instance.ChildType.Name+"_FK");
     instance.Cascade.AllDeleteOrphan();
     instance.Inverse();
     instance.LazyLoad();
 }