Base solution for your next web application

Activities of "alexanderpilhar"

Hi!

I'm curious whether there are any updates on this issue!?

I think I encounter the same behaviour when seeding the database! They way I do it is to first query the DB for an element with a certain ID using the following:

var result = context.TableName.Find(id)

If the result is null I create a new element with a certain Tenant-Id and insert it to the Table. Adding the new element works as expected!

But the next time I run the seed-method the result will be null and a new element will be inserted, again. I think this has something to do with the Tenant-Id. Since the Tenant-Id is not null, the query won't have any result - the host just doesn't have any permission to read a tenant's element.

I also have the same seed-method with the only difference in the Tenant-Id being null. Here everything works as expected!

Is there a way to access the DB and query elements regardless of their Tenant-Id?

Ah, i just found out how to do it myself 8-)

Using the following line before quering the DB did the trick for me:

_context.CurrentUnitOfWorkProvider.Current.DisableFilter(AbpDataFilters.MayHaveTenant);

Hi @ismcagdas,

FileUploadModule has already been imported to admin.module.ts and is used for change-profile-picture-modal.component as well as tenant-settings.component. I basically try to do something very similar to this for main.module.ts but just can't get it to work properly.

Oh, I just started the project the first time today and now everything works as expected. So it seems there was some sort of caching problem - though I did make sure to clear the cache a couple of times yesterday... Well, next time I will restart the whole browser just to be sure!

Aaaah, I did it : )

I was totally right with how I added the tabdrop-library to the angular project - I just did the .tabdrop(); on the wrong element (has to be done on the ul-element instead of the containing tabset-element) ... my bad!

Cheers!

I just finished the upgrade from 4.6.1 to 5.0.2 - and encountered the same exception on database-update. Since it was mentioned that this exception occurs because of solution's name (e.g. when it has been renamed) I had a closer look at the solution file. After the upgrade there were two solution files in my project Folder, the old one named Company.ProjectName and the new one named Company.ProjectName.All. So I tried to simply copy the content of the newer solution file into the old solution file, renaming every occurence of Company.ProjectName.All to Company.ProjectName and use this solution file instead of the new one. Still, the exception was thrown. Then I recognized, that WebContentDirectoryFolder.CalculateContentRootFolder() was looking for a solution file named Company.ProjectName.Web.sln - but that didn't exist anywere in my project folder. So I changed that string to look for Company.ProjectName.sln and the exception did not occur anymore. Strangely though, the naked update-project does not have any Problems with Company.ProjectName.Web.sln, only after I merged it with my development-branch the problem occured - so this made me wonder even more. I had a look into the update-project folder and there it was: the Company.ProjectName.Web.sln solution file! I copied the file to my development-branch folder, and nowWebContentDirectoryFolder.CalculateContentRootFolder() can find Company.ProjectName.Web.sln without problems. Long story short: Version Control had no idea of the missing solution file. All's well that ends well.

Hi,

<cite>ismcagdas: </cite> Hi,

Normally adding second app's url here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L14">https://github.com/aspnetzero/aspnet-ze ... s.json#L14</a> should allow second app to access host project.

But host app is designed to contain only one ClientRootAddress and even if you access more than one app to host, some functions will work according to this value. For example password reset and email actiovation email will contain the value for ClientRootAddress.

Thanks.

Is there a limit to the number of client applications we can create that way? Or can we create as many as we need?

The scenario I'm talking about is the following:

Main AngularUI project for administrative purpose (host and tenant/client) and the creation of content (tenant/client) Copy of AngularUI project for some public stuff (e.g. a website that is used to publish some tenant-created content to be viewed by public) without any authentication/authorization needs Copy of AngularUI project for some other public stuff (e.g. another website that is used for some special purpose, like digital/public signage using tenant-created content) also without any need for authentication/authorization

Is it okay with licensing?

Thanks

Hi @ismcagdas,

great to hear that :D

Yes, they are all parts of the same project - I just want to split up the client-side by use-case to keep the project simple!

Thanks a lot!

FYI

In case you are using Bootstrap 3 Datetimepicker ([http://eonasdan.github.io/bootstrap-datetimepicker/])) and want to work with a specific timezone, there is a timeZone-option which is not documented ([https://github.com/Eonasdan/bootstrap-datetimepicker/issues/2118])) but can be used to set the datetimepicker's timezone to UTC (or whatever you want to use).

It's very useful in case you want to initialize a datetimepicker with a pre-set moment-object. Without this timeZone-option set there can occur really confusing results, like mismatching display- and date-values.

Is there a way to make swagger map actions/methods that start with "Edit" to PUT? Some configuration option maybe? I can't find any information on that.

I started working with AspNetZero by following your step-by-step-guide using "Edit" all the time. I just encountered the fact that swaggers maps them all to POST. Changing every action/method to start with "Update" is quite some task at the point where i am now ...

Showing 1 to 10 of 173 entries