Exemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="DatabaseParameterInfo" /> class.
 /// </summary>
 /// <param name="parameterName">Name of the parameter.</param>
 /// <param name="parameterLayout">The parameter layout.</param>
 public DatabaseParameterInfo(string parameterName, Layout parameterLayout)
 {
     Name = parameterName;
     Layout = parameterLayout;
 }
Exemplo n.º 2
0
        internal bool TryGetCachedLayoutValue(Layout layout, out string value)
        {
            if (layoutCache == null)
            {
                value = null;
                return false;
            }

            lock (layoutCache)
            {
                return layoutCache.TryGetValue(layout, out value);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CsvColumn" /> class.
 /// </summary>
 /// <param name="name">The name of the column.</param>
 /// <param name="layout">The layout of the column.</param>
 public CsvColumn(string name, Layout layout)
 {
     Name = name;
     Layout = layout;
 }
Exemplo n.º 4
0
        internal string AddCachedLayoutValue(Layout layout, string value)
        {
            if (layoutCache == null)
            {
                layoutCache = new Dictionary<Layout, string>();
            }

            lock (layoutCache)
            {
                layoutCache[layout] = value;
            }

            return value;
        }
Exemplo n.º 5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MethodCallParameter" /> class.
 /// </summary>
 /// <param name="name">The name of the parameter.</param>
 /// <param name="layout">The layout.</param>
 /// <param name="type">The type of the parameter.</param>
 public MethodCallParameter(string name, Layout layout, Type type)
 {
     Type = type;
     Name = name;
     Layout = layout;
 }
Exemplo n.º 6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MethodCallParameter" /> class.
 /// </summary>
 /// <param name="parameterName">Name of the parameter.</param>
 /// <param name="layout">The layout.</param>
 public MethodCallParameter(string parameterName, Layout layout)
 {
     Type = typeof (string);
     Name = parameterName;
     Layout = layout;
 }
Exemplo n.º 7
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MethodCallParameter" /> class.
 /// </summary>
 /// <param name="layout">The layout to use for parameter value.</param>
 public MethodCallParameter(Layout layout)
 {
     Type = typeof (string);
     Layout = layout;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConditionLayoutExpression" /> class.
 /// </summary>
 /// <param name="layout">The layout.</param>
 public ConditionLayoutExpression(Layout layout)
 {
     Layout = layout;
 }