protected override object CreateBehavior()
        {
            SqlWorkflowInstanceStorePromotionBehavior behavior = new SqlWorkflowInstanceStorePromotionBehavior((SqlWorkflowInstanceStoreBehavior) base.CreateBehavior());

            foreach (PromotionSet promotionSet in this.PromotionSets)
            {
                List<string> sqlVariantProperties = new List<string>();
                List<string> binaryProperties = new List<string>();

                foreach (PromotedValueElement promotedValue in promotionSet)
                {
                    (promotedValue.IsSqlVariant ? sqlVariantProperties : binaryProperties).Add(promotedValue.PropertyName);
                }

                behavior.Promote(promotionSet.Name, sqlVariantProperties, binaryProperties);
            }

            return behavior;
        }
        protected override object CreateBehavior()
        {
            SqlWorkflowInstanceStorePromotionBehavior behavior = new SqlWorkflowInstanceStorePromotionBehavior((SqlWorkflowInstanceStoreBehavior)base.CreateBehavior());

            foreach (PromotionSet promotionSet in this.PromotionSets)
            {
                List <string> sqlVariantProperties = new List <string>();
                List <string> binaryProperties     = new List <string>();

                foreach (PromotedValueElement promotedValue in promotionSet)
                {
                    (promotedValue.IsSqlVariant ? sqlVariantProperties : binaryProperties).Add(promotedValue.PropertyName);
                }

                behavior.Promote(promotionSet.Name, sqlVariantProperties, binaryProperties);
            }

            return(behavior);
        }