my-second-page
Hi
In my application two roles are present and I want to show this page to admin role only so how can I manage this.
This is a custom logic and not related to ABP. You can write a middleware or use some other approaches.
What was your Oracle version?
Hi, I've just tried it and it works as expected. I've created a new page and simply define its page route top of this page as below.
@page "/my-second-page"
@inherits MyProjectComponentBase
This is not landing page.
@page "/"
@inherits MyProjectComponentBase
My landing page
Hi, Service Proxies does not support API versioning for Angular right now. There is an open issue about it. You can follow the issue.
Actually, this kind of migration generation is normal if you go with the Table Splitting approach, because in this approach basically, you create a subset of an entity by mapping it with another entity.
As a second option, Can you please check the "The AppUser Entity & Custom Properties " section of this article.
Hi, sorry for the late response. I've just tried and encountered an error as you mentioned. I'll create an internal issue for it. Thanks for reporting. Btw, your credit has been refunded.
In oracle, the maximum of varchar2 is 2000. i can not increase more.
Are you sure? As I know, varchar2 can store 4000 bytes/characters max. (https://docs.oracle.com/cd/E18283_01/server.112/e17110/limits001.htm)
Where to create MyAuditLogContributor? In Web, or Application, or EntityFrameworkCore ?
You can create it in your web or application project.
Please note that i am using Oracle. builder.Entity<AuditLogAction>(b => { b.Property(x => x.Parameters).HasMaxLength(int.MaxValue); });
Then can you set the .HasColumnType("varchar2(max)")
and remove the .HasMaxLength(int.MaxValue)
statement as below:
builder.Entity(b =>
{
b.Property(x => x.Parameters).HasColumnType("varchar2(max)");
});
What about this one help me please
Access to XMLHttpRequest at 'https://localhost:44362/.well-known/openid-configuration' from origin 'https://localhost:44308' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Hi, as the error message said this is an error related to CORS policy and a different topic from this question, so please create a new question for your problem.
You can use the Table Splitting approach. Please see the Table Splitting documentation of EF Core and then just update your entity configuration as below:
builder.Entity<AppUser>(b =>
{
b.ToTable(AbpIdentityDbProperties.DbTablePrefix + "Users"); //Sharing the same table "AbpUsers" with the IdentityUser
b.ConfigureByConvention();
b.ConfigureAbpUser();
b.HasOne<IdentityUser>().WithOne().HasForeignKey<AppUser>(x => x.Id); //add this line
});
Same with https://github.com/abpframework/abp/issues/8950#issuecomment-1001880208