Skip to content

Commit 83ffd14

Browse files
authored
Merge pull request #13 from aditnryn/implicit-conv
Add implicit conversion of Query to QueryExpression
2 parents 4d6ff63 + f59e4b4 commit 83ffd14

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

MscrmTools.Shared/Query.cs

+12
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ public Query(string table)
190190

191191
#endregion Properties
192192

193+
#region Operators
194+
195+
/// <summary>
196+
/// Get the <c>QueryExpression</c> representation of this <see cref="Query{T}"/>
197+
/// </summary>
198+
public static implicit operator QueryExpression(Query<T> query)
199+
{
200+
return query.QueryExpression;
201+
}
202+
203+
#endregion Operators
204+
193205
#region QueryExpression
194206

195207
/// <summary>

0 commit comments

Comments
 (0)