public override bool IsAssociationRelationship(MappingEntity entity, MemberInfo member)
        {
            AttributeMappingMember mappingMember = ((AttributeMappingEntity)entity).GetMappingMember(member.Name);

            return((mappingMember != null) && (mappingMember.Association != null));
        }
Beispiel #2
0
        public override bool IsNestedEntity(MappingEntity entity, MemberInfo member)
        {
            AttributeMappingMember mm = ((AttributeMappingEntity)entity).GetMappingMember(member.Name);

            return(mm != null && mm.NestedEntity != null);
        }
        public override string GetAlias(MappingEntity entity, MemberInfo member)
        {
            AttributeMappingMember mappingMember = ((AttributeMappingEntity)entity).GetMappingMember(member.Name);

            return(((mappingMember != null) && (mappingMember.Column != null)) ? mappingMember.Column.Alias : null);
        }
Beispiel #4
0
        public override bool IsPrimaryKey(MappingEntity entity, MemberInfo member)
        {
            AttributeMappingMember mm = ((AttributeMappingEntity)entity).GetMappingMember(member.Name);

            return(mm != null && mm.Column != null && mm.Column.IsPrimaryKey);
        }