示例#1
0
        public SelectQuery(ISession session)
        {
            Session = session;

            WhereExpressions = new List <Expression <Func <T, bool> > >();
            OrderExpressions = new List <OrderExpressionContainer>();
            QueryLockHints   = null;
        }
        public static IQuery WithLockMode(this IQuery source, string alias, LockingHints lockHints)
        {
            if (lockHints == null)
            {
                return(source);
            }

            return(source.SetLockMode(alias, lockHints.TransformToLockMode()));
        }
示例#3
0
        public SelectQuery <T> WithoutLock()
        {
            QueryLockHints = null;

            return(this);
        }
示例#4
0
        public SelectQuery <T> With(LockingHints lockHints)
        {
            QueryLockHints = lockHints;

            return(this);
        }