Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "josus"

Answer

Hi!!

I finally found the problem. So, we have Person entity related to user, I am creating test people with a 1-1 relation with users. The Person code clock is something like this:

var person = new Person {
    Name = "Person Name",
    ....
    User = new User {
        ...
            IsActive = false
        ...
    },
    ...
};

await _personRepository.InsertAsync(person);

Saving the person changes the User to Active so I need to set it to false after this action.

Now is working well.

Thanks!

Answer

Hi!

It is working fine using IRepository<Setting, long>.Delete(). It works like a HardDelete :-). So, one more question, When creating the users, I want some of them created with IsActive set to false. However, they are all created as active... this is my code:

var userId = await _userRepository.InsertOrUpdateAndGetIdAsync(new User
            {
                ...
                IsActive = data.IsUserActive,
                ...
            });

After create I add the user to an OU (_userManager.AddToOrganizationUnit)... Could be this action activating the user again?

Thanks!

Answer

Thanks, it is working now but I have another problem. User settings are not cascade deleted so I need to remove them before I remove the user. I found some methods to get or change settings but I don't know how to remove them.

Ok, I will create it. No errors on the console.

Not yet, I googled for any tip without results. Perhaps another customer has implemented something similar and can help us to solve it.

Not working...

I will try

I am trying to run the solution that comes with my aspnetzero download package. After connected it throws this exception:

ComponentActivator: could not instantiate FBS.TimeMachine.Views.LoginView

I am running on Mac OS with Visual Studio 2017.

Let me try, what is the header name? Abp.TenantId?

Hi!

I was thinking the automatic translation was done by using the Tenant TimeZone but I found that every user profile has his own TimeZone, default to Tenant TimeZone setting if the use don't change it. So, when I was trying to get translated datetimes, my user profile was set as UTC (the default Timezone when it was created!!!!)

Now it works without any manual translation!!!

Thanks.

Showing 1 to 10 of 17 entries