Ejemplo n.º 1
0
        public override void AddStrategy(Strategy strategy)
        {
            OADocumentClassStrategyName name = (OADocumentClassStrategyName)strategy.Name;

            if (name == OADocumentClassStrategyName.OAFileTypeCode)
            {
                strategy.RelationFieldName = "OAFileTypeCode";
                strategy.Type = StrategyType.StringEqual;
            }
            else
            {
                strategy.Type = StrategyType.Other;
            }
            base.AddStrategy(strategy);
        }
Ejemplo n.º 2
0
        public override string BuildSingleStrategyString(Strategy strategy)
        {
            OADocumentClassStrategyName name = (OADocumentClassStrategyName)strategy.Name;

            return(StandardStrategyStringBuilder.BuildStrategyString(strategy));
        }