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