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( //string.Format( // "[FK_{0}.{1}_{2}.{3}]", // instance.EntityType.Name, // instance.Key., // instance.Relationship.Class.Name, // instance.StringIdentifierForModel)); instance.Cascade.AllDeleteOrphan(); instance.Inverse(); instance.AsBag(); }
public void Apply(FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance instance) { instance.Key.Column(instance.EntityType.Name + "Id"); instance.Cascade.AllDeleteOrphan(); instance.Inverse(); }
public void Apply(FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance instance) { instance.Key.Column(instance.EntityType.Name + "Fk"); }
public void Apply(FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance instance) { oneToManyPart.KeyColumnNames.Clear(); oneToManyPart.KeyColumnNames.Add(oneToManyPart.EntityType.Name + "Id"); }