Exemplo n.º 1
0
        internal Value(System.Int64 value, Parameterization p = Parameterization.Value)
            : base(value)
        {
            Original  = value;
            _clrType  = typeof(System.Int64);
            _hashCode = GetCrossTypeHashCode(_clrType, value.GetHashCode());

            Build = (buildContext, buildArgs) =>
            {
                return((p != Parameterization.None) ? (value.Parameterize(buildContext, p) ?? Mapping.BuildCast(value)) : Mapping.BuildCast(value));
            };
        }
Exemplo n.º 2
0
        internal ColumnAsChainer(System.Int64 value, string alias)
            : base(alias)
        {
            _value      = value;
            _columnName = alias;
            if (chainException != null)
            {
                return;
            }

            _prevBuild = (buildContext, buildArgs) =>
            {
                return(value.Parameterize(buildContext) ?? Mapping.BuildCast(value));
            };

            Build = (buildContext, buildArgs) =>
            {
                return(Text.GenerateSql(20)
                       .Append(_prevBuild(buildContext, buildArgs))
                       .Append(Text._As_)
                       .Append(Filter.Delimit(Name))
                       .ToString());
            };
        }
Exemplo n.º 3
0
 internal static string BuildClr(System.Int64 arg, BuildContext buildContext)
 {
     return(arg.Parameterize(buildContext) ?? Mapping.BuildCast(arg));
 }