コード例 #1
0
        public override IEnumerable <string> GetExtensionKeyColumnNames(MappingTable table)
        {
            ExtensionTableAttribute attribute = ((AttributeMappingTable)table).Attribute as ExtensionTableAttribute;

            if (attribute == null)
            {
                return(new string[0]);
            }
            return(attribute.KeyColumns.Split(separators));
        }
コード例 #2
0
        public override IEnumerable <MemberInfo> GetExtensionRelatedMembers(MappingTable table)
        {
            AttributeMappingTable   amt       = (AttributeMappingTable)table;
            ExtensionTableAttribute attribute = amt.Attribute as ExtensionTableAttribute;

            if (attribute == null)
            {
                return(new MemberInfo[0]);
            }
            return(from n in attribute.RelatedKeyColumns.Split(separators) select this.GetMemberForColumn(amt.Entity, n));
        }
コード例 #3
0
        public override string GetExtensionRelatedAlias(MappingTable table)
        {
            ExtensionTableAttribute attribute = ((AttributeMappingTable)table).Attribute as ExtensionTableAttribute;

            return((attribute != null) ? attribute.RelatedAlias : null);
        }