/// <summary> /// Parses a filter expression /// </summary> /// <param name="self">The dialect instance to use</param> /// <param name="filter">The filter to parse</param> /// <typeparam name="T">The target type to parse for</typeparam> /// <returns>The parsed query</returns> public static QueryElement ParseFilter <T>(this IDatabaseDialect self, string filter) => FilterParser.ParseFilter(self.GetTypeMap <T>(), filter);
/// <summary> /// Gets the type map for the given type /// </summary> /// <param name="self">The dialect instance to use</param> /// <returns>The type map.</returns> /// <typeparam name="T">The type to get the map for.</typeparam> public static TableMapping GetTypeMap <T>(this IDatabaseDialect self) => self.GetTypeMap(typeof(T));