internal Value(System.Double value, Parameterization p = Parameterization.Value) : base(value) { Original = value; _clrType = typeof(System.Double); _hashCode = GetCrossTypeHashCode(_clrType, value.GetHashCode()); Build = (buildContext, buildArgs) => { return((p != Parameterization.None) ? (value.Parameterize(buildContext, p) ?? Mapping.BuildCast(value)) : Mapping.BuildCast(value)); }; }
internal ColumnAsChainer(System.Double 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()); }; }
internal static string BuildClr(System.Double arg, BuildContext buildContext) { return(arg.Parameterize(buildContext) ?? Mapping.BuildCast(arg)); }