ServiceStack/ServiceStack.OrmLite — pull request #295 by madaleno (2013-08-01 15:48:34+00:00)
Title: Add overloaded ByExampleWhere<T>() method with excludeNulls parameter

Added overloaded ByExampleWhere(this IDbConnection dbConn, object anonType, bool excludeNulls) because OrmLiteQueryTests that used ByExample were failing.

In this test the object is created with only one property assigned, but the the resulting SQL statement contains all fields in the where clause because OrmLite always assumes excludeNulls=false.

```
var queryByExample = new ModelWithOnlyStringFields { AlbumName = filterRow.AlbumName };
rows = db.ByExampleWhere(queryByExample);
```
becomes

```
...
rows = db.ByExampleWhere(queryByExample, true);
```

generating this sql query:

```
SELECT * FROM ModelWithOnlyStringFields WHERE AlbumName = @AlbumName;
```

Having an option to pass the excludeNulls all the way allows for more flexibility and for the correct sql statement to be generated.
In this case not having the where clause with null value properties which is what the test expects anyway and in my opinion what will be used most with this method.