From f9d9528d923fd1c3a7d2e4f415a27dc903997b09 Mon Sep 17 00:00:00 2001 From: jlukawska <56401969+jlukawska@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:06:37 +0200 Subject: [PATCH] fix TagQuery xml description, expose TagQuery MethodInfo (#3053) --- Source/LinqToDB/LinqExtensions.cs | 8 ++++---- Source/LinqToDB/Reflection/Methods.cs | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/LinqToDB/LinqExtensions.cs b/Source/LinqToDB/LinqExtensions.cs index abc5ad0dc0..0212b60b44 100644 --- a/Source/LinqToDB/LinqExtensions.cs +++ b/Source/LinqToDB/LinqExtensions.cs @@ -3432,8 +3432,8 @@ internal static IQueryable SelectDistinct(this IQueryable /// Adds a tag comment before generated query. /// - /// 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"); /// /// /// Table record mapping class. @@ -3458,8 +3458,8 @@ public static IQueryable TagQuery(this IQueryable sou /// /// Adds a tag comment before generated query for table. /// - /// 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"); /// /// /// Table record mapping class. diff --git a/Source/LinqToDB/Reflection/Methods.cs b/Source/LinqToDB/Reflection/Methods.cs index cd69afa97c..9960924ba2 100644 --- a/Source/LinqToDB/Reflection/Methods.cs +++ b/Source/LinqToDB/Reflection/Methods.cs @@ -120,6 +120,8 @@ public static class LinqToDB public static readonly MethodInfo AsQueryable = MemberHelper.MethodOfGeneric>(q => q.AsQueryable(null!)); public static readonly MethodInfo AsSubQuery = MemberHelper.MethodOfGeneric>(q => q.AsSubQuery()); + public static readonly MethodInfo TagQuery = MemberHelper.MethodOfGeneric>(q => q.TagQuery(string.Empty)); + public static class Table { public static readonly MethodInfo TableName = MemberHelper.MethodOfGeneric>(t => t.TableName (null!));