RightQueryField
An extended query field class for defining SQL expressions using the RIGHT function. Inherits QueryField.
Usability
var where = new RightQueryField("Column", "Value");
var result = connection.Query<Entity>(where);
The result contains all records where Column ends with Value.
GetString
The GetString() method returns the command text using the RIGHT function.
var where = new RightQueryField("Column", "Value");
var text = where.GetString(connection.GetDbSetting()); // Returns (RIGHT([Column]) = @Column)