public override void ApplyForAllTablePairs(ITransaction tran, IPairTableFunction func) { func.Apply(AuthUserDatabase.Temp(tran).RolesTable, AuthUserDatabase.Get.RolesTable); func.Apply(AuthUserDatabase.Temp(tran).PermissionRolesTable, AuthUserDatabase.Get.PermissionRolesTable); func.Apply(AuthUserDatabase.Temp(tran).AuthUsersTable, AuthUserDatabase.Get.AuthUsersTable); func.Apply(AuthUserDatabase.Temp(tran).AuthUserRolesTable, AuthUserDatabase.Get.AuthUserRolesTable); func.Apply(AuthUserDatabase.Temp(tran).AdminLogsTable, AuthUserDatabase.Get.AdminLogsTable); func.Apply(AuthUserDatabase.Temp(tran).DomainEventsTable, AuthUserDatabase.Get.DomainEventsTable); }
public override List <DomainEvent> TempDomainEventsTable(ITransaction transaction) { return(AuthUserDatabase.Temp(transaction).DomainEventsTable); }
private void StoreTestRole(long id) { var role = BuildTestRole(id); _unitOfWork.Store(role, tran => AuthUserDatabase.Temp(tran).RolesTable); }