Example #1
0
        ManyToManyPart <TChild> HasManyToMany <TChild>(Member member)
        {
            //PROTOTYPE1: ADDED
            var part = providers.Collections.OfType <ManyToManyPart <TChild> >().FirstOrDefault(p => p.Property.Name == member.Name);

            if (part == null)
            {
                //PROTOTYPE1: ADDED

                OnMemberMapped(member);

                part = new ManyToManyPart <TChild>(EntityType, member);

                //PROTOTYPE1: ADDED
                if (this.UseBackingField(member.Name))
                {
                    part.Access.CamelCaseField(Prefix.Underscore);
                }
                //PROTOTYPE1: ADDED

                providers.Collections.Add(part);

                //PROTOTYPE1: ADDED
            }
            //PROTOTYPE1: ADDED

            return(part);
        }
Example #2
0
        private ManyToManyPart <TChild> HasManyToMany <TChild>(Member member)
        {
            this.OnMemberMapped(member);
            ManyToManyPart <TChild> manyToManyPart = new ManyToManyPart <TChild>(this.EntityType, member);

            this.providers.Collections.Add((ICollectionMappingProvider)manyToManyPart);
            return(manyToManyPart);
        }
        protected virtual ManyToManyPart <TChild> HasManyToMany <TChild>(Member property)
        {
            var part = new ManyToManyPart <TChild>(EntityType, property);

            collections.Add(part);

            return(part);
        }
Example #4
0
        protected virtual ManyToManyPart <TChild> HasManyToMany <TChild>(MethodInfo method)
        {
            var part = new ManyToManyPart <TChild>(EntityType, method);

            collections.Add(part);

            return(part);
        }
        ManyToManyPart <TChild> HasManyToMany <TChild>(Member member)
        {
            OnMemberMapped(member);

            var part = new ManyToManyPart <TChild>(EntityType, member);

            providers.Collections.Add(part);

            return(part);
        }