Skip to content

Commit 45a6565

Browse files
authored
Relax type constraints on value passed to WhereLess* methods
1 parent 83ffd14 commit 45a6565

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MscrmTools.Shared/Query.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,7 @@ public Query<T> WhereLastYear<U>(string tableAlias, Expression<Func<U, object>>
32713271
/// <param name="column">Logical name of the column</param>
32723272
/// <param name="value">The value</param>
32733273
/// <returns>The <see cref="Query{T}"/></returns>
3274-
public Query<T> WhereLessEqual(Expression<Func<T, object>> column, int value)
3274+
public Query<T> WhereLessEqual(Expression<Func<T, object>> column, object value)
32753275
{
32763276
QueryExpression.Criteria.AddCondition(AnonymousTypeHelper.GetAttributeName(column), ConditionOperator.LessEqual, value);
32773277

@@ -3283,7 +3283,7 @@ public Query<T> WhereLessEqual(Expression<Func<T, object>> column, int value)
32833283
/// <param name="column">Logical name of the column</param>
32843284
/// <param name="value">The value</param>
32853285
/// <returns>The <see cref="Query{T}"/></returns>
3286-
public Query<T> WhereLessEqual<U>(string tableAlias, Expression<Func<U, object>> column, int value) where U : Entity
3286+
public Query<T> WhereLessEqual<U>(string tableAlias, Expression<Func<U, object>> column, object value) where U : Entity
32873287
{
32883288
QueryExpression.Criteria.AddCondition(tableAlias, AnonymousTypeHelper.GetAttributeName(column), ConditionOperator.LessEqual, value);
32893289

@@ -3294,7 +3294,7 @@ public Query<T> WhereLessEqual<U>(string tableAlias, Expression<Func<U, object>>
32943294
/// <param name="column">Logical name of the column</param>
32953295
/// <param name="value">The value</param>
32963296
/// <returns>The <see cref="Query{T}"/></returns>
3297-
public Query<T> WhereLessThan(Expression<Func<T, object>> column, int value)
3297+
public Query<T> WhereLessThan(Expression<Func<T, object>> column, object value)
32983298
{
32993299
QueryExpression.Criteria.AddCondition(AnonymousTypeHelper.GetAttributeName(column), ConditionOperator.LessThan, value);
33003300

@@ -3306,7 +3306,7 @@ public Query<T> WhereLessThan(Expression<Func<T, object>> column, int value)
33063306
/// <param name="column">Logical name of the column</param>
33073307
/// <param name="value">The value</param>
33083308
/// <returns>The <see cref="Query{T}"/></returns>
3309-
public Query<T> WhereLessThan<U>(string tableAlias, Expression<Func<U, object>> column, int value) where U : Entity
3309+
public Query<T> WhereLessThan<U>(string tableAlias, Expression<Func<U, object>> column, object value) where U : Entity
33103310
{
33113311
QueryExpression.Criteria.AddCondition(tableAlias, AnonymousTypeHelper.GetAttributeName(column), ConditionOperator.LessThan, value);
33123312

@@ -4590,4 +4590,4 @@ public T GetById(Guid id, IOrganizationService service, bool isActivityEntity =
45904590

45914591
#endregion Service calls
45924592
}
4593-
}
4593+
}

0 commit comments

Comments
 (0)