Skip to content

Commit

Permalink
fix TagQuery xml description, expose TagQuery MethodInfo (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukawska committed Jun 23, 2021
1 parent 6dcfc69 commit f9d9528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/LinqToDB/LinqExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3432,8 +3432,8 @@ internal static IQueryable<TSource> SelectDistinct<TSource>(this IQueryable<TSou
/// <summary>
/// Adds a tag comment before generated query.
/// <code>
/// The example below will produce following code before generated query: -- my tag\r\n
/// db.Table.TagWith("my tag");
/// The example below will produce following code before generated query: /* my tag */\r\n
/// db.Table.TagQuery("my tag");
/// </code>
/// </summary>
/// <typeparam name="TSource">Table record mapping class.</typeparam>
Expand All @@ -3458,8 +3458,8 @@ public static IQueryable<TSource> TagQuery<TSource>(this IQueryable<TSource> sou
/// <summary>
/// Adds a tag comment before generated query for table.
/// <code>
/// The example below will produce following code before generated query: -- my tag\r\n
/// db.Table.TagWith("my tag");
/// The example below will produce following code before generated query: /* my tag */\r\n
/// db.Table.TagQuery("my tag");
/// </code>
/// </summary>
/// <typeparam name="T">Table record mapping class.</typeparam>
Expand Down
2 changes: 2 additions & 0 deletions Source/LinqToDB/Reflection/Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ public static class LinqToDB
public static readonly MethodInfo AsQueryable = MemberHelper.MethodOfGeneric<IQueryable<object>>(q => q.AsQueryable(null!));
public static readonly MethodInfo AsSubQuery = MemberHelper.MethodOfGeneric<IQueryable<object>>(q => q.AsSubQuery());

public static readonly MethodInfo TagQuery = MemberHelper.MethodOfGeneric<IQueryable<object>>(q => q.TagQuery(string.Empty));

public static class Table
{
public static readonly MethodInfo TableName = MemberHelper.MethodOfGeneric<ITable<int>>(t => t.TableName (null!));
Expand Down

0 comments on commit f9d9528

Please sign in to comment.