An extended query field class that is being used to define a query expression for the SQL statement using the LEN function. It inherits the QueryField object.
This functional query field object is only useful for SQL Server data provider.
Below is a sample code on how to use this class.
var where = new LenQueryField("Column", 3); var result = connection.Query<Entity>(where);
The result would contain all the records where the lenght of the
Column is equals
GetString() method returns a command text that utilizes the
var where = new LenQueryField("Column", 3); var text = where.GetString(connection.GetDbSetting()); // Returns (LEN([Column]) = @Column)