public virtual bool UpdateSecRoleMenuScopeDomain(SecRoleMenuScopeDomain domain) { using (DataAccessBroker broker = DataAccessFactory.Instance()) { broker.BeginTransaction(); try { // 具体业务逻辑 broker.Commit(); return true; } catch { broker.RollBack(); return false; } } }
public virtual bool InsertSecRoleMenuScopeDomain(SecRoleMenuScopeDomain domain) { using (DataAccessBroker broker = DataAccessFactory.Instance()) { broker.BeginTransaction(); try { // 具体业务逻辑 InsertSecRoleMenuScopeEntity(domain.masterEntity, broker); broker.Commit(); return true; } catch { broker.RollBack(); return false; } } }