Jump to content

Photo

Custom UrlRecords filter

"\r\n48536

  • Please log in to reply
No replies to this topic

#1 havana7

havana7

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 12 December 2023 - 10:11

I would like to apply a custom filter to
var urlRecord = await _db.UrlRecords
     .AsNoTracking()
     .ApplyMyCustomSlugFilter(slug, true)
     .FirstOrDefaultAsync();

How can I override the TransformAsync method in the SlugRouteTransformer.cs file in a module?

 
Thank you