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));
        }
        public void Apply(IManyToManyCollectionInstance instance)
        {
            var names = new List<string>
                            {
                                instance.EntityType.Name,
                                instance.ChildType.Name
                            };

            names.Sort();

            instance.Table(string.Format("{0}To{1}", names[0], names[1]));
            instance.LazyLoad();
        }
        public void Apply(IManyToManyCollectionInstance instance)
        {
            var attr = instance.Member.GetCustomAttribute <LazyLoadAttribute>();

            if (attr == null)
            {
                return;
            }
            if (attr.Enabled)
            {
                instance.LazyLoad();
            }
            else
            {
                instance.Not.LazyLoad();
            }
        }
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.LazyLoad(); // TODO: Do we need ExtraLazyLoad?
 }
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.LazyLoad(); // TODO: Do we need ExtraLazyLoad?
 }
 public void Apply(IManyToManyCollectionInstance instance)
 {
     instance.Cascade.All();
     instance.LazyLoad();
 }