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

Activities of "jonas452"

Exactly what i needed. Thx!

I am directly testing on the swagger ui. And yes, no Authenticationheader is being send with my request. So that seems to be the problem.

Let's say i want to test purely on swagger ui? how do i make sure the authenticationheader is being send? I also have tried using postman. Seems to be a great testing suite.

Which method do i need to execute on the webapi to receive a cookie with a tenant id? I thought it was /api/services/app/Account/IsTenantAvailable. But postman isn't receiving a cookie for that.

Basicly i need a small nudge in the right direction so i know how to test my api's directly. Thanks for any further info.

jonas

Answer

If you want so change db because of license cost. I'd suggest MariaDB. I'm using it right now.

Just change(extend,..) the user class and update by using code-first migrations. Certainly don't do it manually on your sql database.

I think you mean this? <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-angular">https://github.com/aspnetzero/aspnet-zero-angular</a> Looks like its angular 2

If every class inherits FullAuditedEntity you can make a new class that inherits FullAuditedEntity and overwrite the Id key field. Otherwise do it manually and map those keys by fluent api.

For existing classes like Users you must inherit that in a new class and again override the key field.

Do check that when you choose your PK as a guid that there is not a clustered index on your key. That would cause a performance hit.

It's generally considered a bad idea to always use a GUID as a primary key.

As one must continue it's development i have defined a navigation property on my model. Something i really didn't want to do.

modelBuilder.Entity<Person>().Property(p => p.PUserAccount_Id).IsOptional().HasColumnName("PUserAccount_Id");
modelBuilder.Entity<Person>().HasOptional(p => p.PUserAccount).WithMany().HasForeignKey(pers => pers.PUserAccount_Id);

But hey, what can you do... If someone finds a better solution for this in the future, i'd love to hear it.

@ ismcagdas - Thx for the link ;)

I spent a significant amount of time trying to solve that problem and could not find a solution. So the only way to make that work is to define the ID properties in your models.

I don't want to place a foreignkey on my model. breaks the seperate layer design. So besides that solution is there a work around ? a certain mapping i can do in fluent api?

your image link is down.

Haven't posted my app to azure(i'm going to) but since tenant creation is fully managed by your app code it shouldn't fail. Does every new tenant gets it's own database? if so i would assume your problem lies with creating new databases.

lol, i did not know that was a search button. thx!

Showing 11 to 20 of 21 entries