public DataSourceExpressionBuilder(DataSourceLoadOptionsBase loadOptions, bool guardNulls = false, bool stringToLower = false, AnonTypeNewTweaks anonTypeNewTweaks = null) { _loadOptions = loadOptions; _guardNulls = guardNulls; _stringToLower = stringToLower; _anonTypeNewTweaks = anonTypeNewTweaks; }
public RemoteGroupExpressionCompiler(bool guardNulls, AnonTypeNewTweaks anonTypeNewTweaks, IEnumerable <GroupingInfo> grouping, IEnumerable <SummaryInfo> totalSummary, IEnumerable <SummaryInfo> groupSummary) : base(guardNulls) { _anonTypeNewTweaks = anonTypeNewTweaks; _grouping = grouping; _totalSummary = totalSummary; _groupSummary = groupSummary; }
public RemoteGroupExpressionCompiler(Type itemType, bool guardNulls, bool expandSumType, AnonTypeNewTweaks anonTypeNewTweaks, IEnumerable <GroupingInfo> grouping, IEnumerable <SummaryInfo> totalSummary, IEnumerable <SummaryInfo> groupSummary) : base(itemType, guardNulls) { _expandSumType = expandSumType; _anonTypeNewTweaks = anonTypeNewTweaks; _grouping = grouping; _totalSummary = totalSummary; _groupSummary = groupSummary; }
public void AllowUnusedMembersFalse() { var tweaks = new AnonTypeNewTweaks { AllowUnusedMembers = false }; Assert.Equal( "new AnonType`4(I0 = 0, I1 = 1, I2 = 2, I3 = False)", AnonType.CreateNewExpression(PARTIAL_EXPR_LIST, tweaks).ToString() ); }
public void AllowEmptyFalse() { var tweaks = new AnonTypeNewTweaks { AllowEmpty = false }; Assert.Equal( "1", AnonType.CreateNewExpression(EMPTY_EXPR_LIST, tweaks).ToString() ); }
static void AssertDefaultBehavior(AnonTypeNewTweaks tweaks) { Assert.Equal( "new AnonType()", AnonType.CreateNewExpression(EMPTY_EXPR_LIST, tweaks).ToString() ); Assert.Equal( "new AnonType`4(I0 = 0, I1 = 1, I2 = 2)", AnonType.CreateNewExpression(PARTIAL_EXPR_LIST, tweaks).ToString() ); }
public SelectExpressionCompiler(Type itemType, bool guardNulls, AnonTypeNewTweaks anonTypeNewTweaks = null) : base(itemType, guardNulls) { _anonTypeNewTweaks = anonTypeNewTweaks; }
public DataSourceExpressionBuilder(DataSourceLoadContext context, bool guardNulls = false, AnonTypeNewTweaks anonTypeNewTweaks = null) { _context = context; _guardNulls = guardNulls; _anonTypeNewTweaks = anonTypeNewTweaks; }