Пример #1
0
 /// <summary>
 /// Declares an inline parameter used for SQL code inlining rather than passing data values. A procedure with an inline parameter is recompiled on every execution.
 /// </summary>
 /// <param name="prev">A predecessor object.</param>
 /// <param name="parameter">Is the name of a parameter. The name must begin with the at sign (@) and should follows the rules for regular SQL identifiers.</param>
 /// <param name="inlineType">Is an inline type of a parameter.</param>
 public static InlineParamChainer Param(this IParam prev, string parameter, Designer.Inliner inlineType)
 {
     return(new InlineParamChainer((Chainer)prev, parameter, inlineType.ToDT()));
 }
Пример #2
0
 internal static DT ToDT(this Designer.Inliner inlinerType)
 {
     return((DT)Enum.Parse(typeof(DT),
                           "In" + inlinerType.ToString(), true));
 }