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

Activities of "ryancyq"

Hi @[email protected], is your /app/report/reportbymonth an angular page?

if it is not, you won't be able to route to that url using angular router.

see https://stackoverflow.com/q/26031748/6856176

Hi @shimi, i haven't tried it yet but you can try the approach at https://forums.asp.net/t/2137772.aspx?Identity+Server+4+and+Single+Sign+On

Hi @ebarib i haven't tried on this yet. However you can try the approach of custom password validator in asp.net core identity .

see https://andrewlock.net/creating-custom-password-validators-for-asp-net-core-identity-2/

@mdframe, yes you can do that. a PurchaseOrder most likely to have a collection of PurchaseOrderLineItem.

You can

  1. follow Ef/Ef Core naming convention for entity properties
  2. decorate your entity properties with EF/EF Core Attributes

e.g. https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/Roles/AbpRole.cs#L39

see also https://docs.microsoft.com/en-us/ef/core/modeling/relationships

Answer

you can follow how other modals work in ANZ.

for example, edit-tenant-modal, see how modal is written https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/admin/tenants/edit-tenant-modal.component.ts

and how register the modal in your view https://github.com/aspnetzero/aspnet-zero-core/blob/f72d4bf9ced778e06265f1c415a8553b10cbaf3d/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Areas/AppAreaName/Views/Tenants/_EditModal.js

See https://support.aspnetzero.com/QA/Questions/3232

Abp built-in repository pattern supprts only Id as primary key. if you want to have composite primary keys, you can do it without going through abp repository interface (however you do lose some advantages from not using abp repository)

DbConnection for each dedicated database is handled by Abp framework. If a tenant has a custom connection string, default db context will be resolved with the dedicated database. Hence, both HostDbContext and TenantDbContext should be identicial.

See https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp.Zero.EntityFrameworkCore/Zero/EntityFrameworkCore/DbPerTenantConnectionStringResolver.cs#L57

Hi, is the error occurred everytime after 15mins consistently ?

you can take a look at which area of the application is having the error and narrow the problem to either app service or repository level.

Aslo ensure all abp nuget packages in your project are consistently 2.1.3.

Hi, @fguo, sounds like you want to have HostDbContext and TenantDbContext.

currently ANZ is using the same DbContext for both host and tenant. Multi tenancy data retrieval is achieved using data filter (MultiTenancySide) so that even if a tenant connection is using DbContext with Host related tables, it will not be able to retrieve any host data.

if you still want a multiple db context solution, you can refer to https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3765#issuecomment-414108163

Showing 421 to 430 of 573 entries