Skip to content

Commit

Permalink
Add implicit conversion of Query to QueryExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
aa-dit-yuh committed Jan 25, 2024
1 parent 4d6ff63 commit f59e4b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MscrmTools.Shared/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,18 @@ public Query(string table)

#endregion Properties

#region Operators

/// <summary>
/// Get the <c>QueryExpression</c> representation of this <see cref="Query{T}"/>
/// </summary>
public static implicit operator QueryExpression(Query<T> query)
{
return query.QueryExpression;
}

#endregion Operators

#region QueryExpression

/// <summary>
Expand Down

0 comments on commit f59e4b4

Please sign in to comment.