public virtual void ConstructionExample3WithOptions() { var options = new FlowQueryOptions(); options.Add(criteria => criteria.SetCacheMode(CacheMode.Refresh)); IImmediateFlowQuery <UserEntity> query = Session.FlowQuery <UserEntity>(options); Assert.That(query, Is.Not.Null); }
public virtual void ConstructionExample4WithAliasAndOptions() { UserEntity alias = null; var options = new FlowQueryOptions(); options.Add(criteria => criteria.SetCacheMode(CacheMode.Refresh)); IImmediateFlowQuery <UserEntity> query = Session.FlowQuery(() => alias, options); Assert.That(query, Is.Not.Null); }