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

Activities of "4Matrix"

When creating databases in azure, I need to be able to specify options for the database being created using CreateOrMigrateForTenant.

The entity framework tells me that I can do this using the DbContext Model builder like so: https://learn.microsoft.com/en-us/ef/core/providers/sql-server/azure-sql-database

But this is not working, I am not 100% sure if this is an AspNetZero problem or not, it might just be broken. Is this the way you would suggest setting db settings such as the Service Tier or in my case, the elastic pool that I want the new tenant database to be created in?

I am using the Asp.Net Core with Angular v12 template but I don't want to use the MVC public site template. I have added a "Landing" folder at the same level as the Account and App folders in the Angular project. I have then created a module and component in this folder and have created folders/components under this folder for the landing site pages, e.g. about, contact etc. This is all working fine and I have adjusted the routing etc so I can now see localhost:4200/landing/home without needing to be logged in, which is great. My issue now is how I can tweak the routing for once the site is published. I have pushed the dist folder to a static web app in azure and setup two custom domains, app.mywebsite.com and www.mywebsite.com. app.mywebsite.com works perfectly, showing the main app or the login page if not logged in. What I cant figure out how to do is point www.mywebsite.com to the landing/home component. I can create redirects but I would need to do this for every component and it feels like it will be quite messy. I also want people to be able to go to www.mywebsite.com/about, not www.mywebsite.com/landing/about. Is there a way to achieve this or am i stuck having to create redirects?

Has anyone managed to deploy the Angular app to an Azure Static Web App? It seems like this is a much better fit than deploying it to an azure storage account that then requires a cdn etc. I found this guide on how to publish an angular app to a static web app but it only seems to work if you host you project in github, which we dont, we use DevOps. Am I missing something here? Is a Static Web App the best way to go for price, performance and convenience?! If so, any advice on how to setup deployment would be much appreciated!

We want our Host database to store all our lookup tables as well as all user details, roles, permission, invoices, subscriptions etc but we also want each tenant to have their own database, which will use its own set of tables that are not specific to Asp Net Zero, e.g. Students, Classes etc. I think the best way to acheive this is to use multiple db context but I am not sure what the best aproach to use is? Has anyone else done anything similar to this?

We also have Two different types of Tenant, denoted by a field in abpTenants called "TenantType". Each tenant type will need different tables so I am thinking I need 3 db context, 1 for the Main ABP stuff and another one for each tenant type, I then need to be able to access 2 different dbContexts per tenant, The Main one and the second tenant specific one.

The reason for splitting off the user data is so that users do not need to specify a Tenant when logging in, they will have a unique email address that they log in with, which then tells us which tenant they are. I think i need something like this but I am not sure I understand it clearly?

https://stackoverflow.com/questions/49243891/how-to-use-multiples-databases-in-abp-core-zero

ASP Net Core + Angular v11.01

I have a fully working setup running in azure, I have setup a seperate copy on a local IIS server for OFFLINE use at an exhibition we are at. I downloaded the azure databases and put them on local SQL and I can connect to them from SQL studio. It was working fine when we were in the office with internet but now we are here at the show, it has stopped working! It is throwing errors about CORS but I do not think this is the issue as it was working ok with the internet? It seems to connect to the HOST DB as it lets me select the tenant but once i press login, it has a 500 internall error which looks as if it is trying to connect to the azure database, not the local one? I have changed the settings files but is it trying to use the tenant connection strings that are saved in the Host DB, which are the azure ones so wont work? I cant seem to login as host either?

We are at the show now so any advice would be very much apreciated!

Hi

I am trying to implement nested widgets for customizable-dashboard based on the following template

https://preview.keenthemes.com/metronic8/angular/demo1/crafted/pages/profile/overview

In the template, all the content of the tabs are nested components and the routing for the tabs redirect to those files whilst the header in the page remains constant.

Now, in the context of customizable-dashboard, I am wondering which would be the best option; Either to use tab names / ids as an input for Widget filter which will then show appropriate content or create separate pages for each tabs and route to them from the base profile component.

  • v11.1.0-rc.1
  • Angular
  • .NET Core

Thanks

Prerequisites

Using Asp.net Core + Angular Solution v10.5

Question

For our application, we have 2 different tyes of Tenant, lets call the Company and Client.

  • The Client tenant will only store data about itself and will have its own set of displays. It pulls lookup data from the host database but also has its own database to store its data.
  • The Company tenant will pull data from multiple linked clients but will have its own set of data tables that are different from the client. It will also have a completly different set of displays that they see but they can also look a the "Client" screens on a per client basis.

If I want to have different tenant types, what is the best way to have different schemas for each tenant type and how can I link to the host database for the lookup data without just switching the tenant id in the dbcontext to look at 2 totally seperate databases?

Question

ASP.NET CORE & Angular .NET Core 3.1 v9.0.1 We want to use the Chat features in AspNetZero to provide a Live Chat system to support our Tenants. Users of the Host App should be placed into groups (possibly OU's) such as "Support" and "Sales". Tenants should be able to choose one of these groups to start a live chat. All Host Users Online and in the selected group should see the incoming chat request, one of them will answer it but be able to forward it etc. Each chat should be indipendant and saved against the tenant and user.

I know this will require quite a bit of customisation, just looking for some advice on how best to achieve this without breaking the chat functions for future updates? Any help or advice would be great!

ASP.NET CORE & Angular .NET Core 3.1 v9.0.1 We would like to switch the theme/template of the Web.Public project to use a different theme. Currently it uses https://keenthemes.com/free-bootstrap-templates/free-bootstrap-corporate but we would like to switch it to using a different theme by the same company, https://keenthemes.com/free-bootstrap-templates/jango

Whilst I can just update the project myself, I was wondering if there was a way this could be done so that it wont break when I update ASP Net Zero in the future? e.g. make the template switchable and allow custom templates to be created?

I would also like the ability to do this for the main Admin theme/template too, currently it uses https://preview.keenthemes.com/metronic/angular/demo1/dashboard but https://preview.keenthemes.com/keen/demo5/index.html would work better for the project I am working on. Again, I could make these changes manually but would have issues after every update unless the theme/template could be modularised in some way?

Is this something you are planning or offer any advise on?

Hi,

How can i change the theme for Public Website in .NET Core & Jquery base Project?

I have gone through your documentation to add a new metronic or metronic supported themes. But I am not sure if this applies to Public Website.

Can you please point me to any relevant documentation?

Thank you

Showing 1 to 10 of 11 entries