Ejemplo n.º 1
0
        public override bool IsColumn(MappingEntity entity, MemberInfo member)
        {
            CompositiveMappingEntity en = (CompositiveMappingEntity)entity;
            CompositiveMappingMember mm = en.GetMappingMember(member.Name);

            if (mm != null)
            {
                return(!mm.NotMapped);
            }

            return(base.IsColumn(entity, member));
        }
Ejemplo n.º 2
0
        public override bool IsGenerated(MappingEntity entity, MemberInfo member)
        {
            CompositiveMappingEntity en = (CompositiveMappingEntity)entity;
            CompositiveMappingMember mm = en.GetMappingMember(member.Name);

            if (mm != null && mm.Column != null)
            {
                return(mm.Column.IsGenerated);
            }

            return(base.IsGenerated(entity, member));
        }
Ejemplo n.º 3
0
        public override string GetColumnName(MappingEntity entity, MemberInfo member)
        {
            CompositiveMappingEntity en = (CompositiveMappingEntity)entity;
            CompositiveMappingMember mm = en.GetMappingMember(member.Name);

            if (mm != null && mm.Column != null)
            {
                return(mm.Column.Name);
            }

            return(base.GetColumnName(entity, member));
        }