コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }