Пример #1
0
        public virtual void AddSetOfValues(ArrayValueNode valueNode)
        {
            var param = new ArrayDacParameter(GetNextParameterName(), valueNode.MemberDataType, valueNode.MemberDataTypeCode, valueNode.Value);

            Params.Add(param);

            AddValue(string.Concat("(select [Value] from ", param.Name, ")"));
        }
Пример #2
0
        protected virtual void OnVisitParam(ArrayDacParameter param, StringBuilder content)
        {
            content.Append(param.Name);
            content.Append("=[");
            var values = (object[])param.Value;

            foreach (var value in values)
            {
                content.Append(SisoEnvironment.StringConverter.AsString(value));
                content.Append(",");
            }
            content.Append("]");
        }