示例#1
0
        protected override void Init()
        {
            base.Init();

            _isTypeOfs = new List <bool>();

            if (RefName != null)
            {
                var typeNames = RefName.Split(_delimiter);
                foreach (var typeName in typeNames)
                {
                    if (EntityTypeMapping.UsesIsTypeOf(typeName))
                    {
                        _isTypeOfs.Add(true);
                    }
                    else
                    {
                        _isTypeOfs.Add(false);
                    }
                }
            }
        }
示例#2
0
        protected override List <NormalizedName> GetRefNameAsNormalizedNames()
        {
            var normalizedNamesList = new List <NormalizedName>();

            if (RefName != null)
            {
                var newRefNames = RefName.Split(_delimiter);
                foreach (var newRefName in newRefNames)
                {
                    if (_nameNormalizer == null)
                    {
                        var symbol = new Symbol(newRefName);
                        normalizedNamesList.Add(new NormalizedName(symbol, null, null, newRefName));
                    }
                    else
                    {
                        normalizedNamesList.Add(_nameNormalizer(Parent as EFElement, newRefName));
                    }
                }
            }

            return(normalizedNamesList);
        }