diff --git a/README.md b/README.md index 3a3f2fb..cdff3eb 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,15 @@ queryBuilder.And(subQuery => query = queryBuilder.Build(); ``` + +### Entity Framework + +Using PoweredSoft.DynamicLinq.EntityFramework it adds an helper that allows you to do the following. + +```csharp +var context = new (); +var queryable = context.Query(typeof(Author), q => q.Compare("FirstName", ConditionOperators.Equal, "David")); +var result = queryable.ToListAsync().Result; +var first = result.FirstOrDefault() as Author; +Assert.AreEqual(first?.FirstName, "David"); +```