示例#1
0
        public UnitOfWork(ISession session, ISessionContext sessionContext)
        {
            _session = session;
            _sessionContext = sessionContext;
            var enableOrgFilter = _session.EnableFilter("OrgConditionFilter");
            var enableDeleteFilter = _session.EnableFilter("DeletedConditionFilter");
            if (enableOrgFilter == null) return;

            enableOrgFilter.SetParameter("OrgId", _sessionContext.GetOrgId());
            enableDeleteFilter.SetParameter("Archived", false);
        }