Esempio n. 1
0
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.Access.ReadOnlyPropertyThroughCamelCaseField();
     instance.Cascade.SaveUpdate();
     instance.AsSet();
     instance.BatchSize(25);
 }
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.Access.ReadOnlyPropertyThroughCamelCaseField();
     instance.Cascade.SaveUpdate();
     instance.AsSet();
     instance.BatchSize(25);
 }
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.Access.ReadOnlyPropertyThroughCamelCaseField(CamelCasePrefix.Underscore);
     instance.Cascade.SaveUpdate();
     instance.BatchSize(500);
     instance.AsSet();
     instance.LazyLoad();
 }
        public new void Apply(IManyToManyCollectionInstance instance)
        {
            var entityType = instance.EntityType;
            var childName = instance.ChildType.Name;

            instance.LazyLoad();
            instance.BatchSize(5);
            instance.Access.CamelCaseField(CamelCasePrefix.Underscore);
            instance.Cascade.All();
            instance.Key.Column(entityType.Name + "_id");
            instance.Relationship.Column(Inflector.Underscore(childName) + "_id");
            instance.Table(Inflector.Underscore(NamingHelper.GetPrefixedName(entityType) + childName, pluralize: true));
        }