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!));