aspnetboilerplate

How can I add and use new column in abpfeature table and access it in boilerplate?

情到浓时终转凉″ 提交于 2021-02-20 09:43:26
问题 I'm using asp.net zero build on boilerplate and I want to extend my table of feature, but I couldn't access feature table like other normal tables which I've created. Can anyone help? 回答1: I was facing your problem with another table AuditLogs , and I finally managed to solve it using EF Core features. You can find my issue and its solution here The solution is lying on the concept of inheritance in EF Core. Basically, you can create a new class namely " ExtendedFeature " derived from

EF Core - adding/updating entity and adding/updating/removing child entities in one request

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-17 21:00:18
问题 I am struggling with what seemed to be a couple of basic operations. Let's say I've got a class named Master: public class Master { public Master() { Children = new List<Child>(); } public int Id { get; set; } public string SomeProperty { get; set; } [ForeignKey("SuperMasterId")] public SuperMaster SuperMaster { get; set; } public int SuperMasterId { get; set; } public ICollection<Child> Children { get; set; } } public class Child { public int Id { get; set; } public string SomeDescription {

IdentityServer External auth provider - auth-callback - Redirection - 400 Bad request

爷,独闯天下 提交于 2021-02-17 19:20:50
问题 I am following https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client and https://www.scottbrady91.com/Angular/Migrating-oidc-client-js-to-use-the-OpenID-Connect-Authorization-Code-Flow-and-PKCE to implement OIDC in SPA(Angular) I am using aspboilerplate integrated IdentityServer I've set up everything as per the above articles and I was able to navigate to external auth provider and was also able to enter the required credentials. While

IdentityServer External auth provider - auth-callback - Redirection - 400 Bad request

让人想犯罪 __ 提交于 2021-02-17 19:20:29
问题 I am following https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client and https://www.scottbrady91.com/Angular/Migrating-oidc-client-js-to-use-the-OpenID-Connect-Authorization-Code-Flow-and-PKCE to implement OIDC in SPA(Angular) I am using aspboilerplate integrated IdentityServer I've set up everything as per the above articles and I was able to navigate to external auth provider and was also able to enter the required credentials. While

Access SignalR from domain services and application layer

。_饼干妹妹 提交于 2021-02-11 13:32:53
问题 This is directly related to calling a SignalR Hub from the Application Service Layer in ASP.NET Boilerplate .NET Core version. As per the solution, SignalR hub implementation should be done in Web layer. But the dependency structure of the projects are like: App depends on Domain.Core Web.Core depends on App Web.Host depends on Web.Core Two questions: To be able to use the Hub in both Domain.Core and App projects, how should I wire it all up? If I define the interface in App layer with a null

How to replace free BSB aspnetboilerplate theme

南楼画角 提交于 2021-02-11 09:42:47
问题 I want to replace the free BSB theme in aspnetboilerplate project (Angular + ASP.NET Core) with a custom theme. Are there any instructions of how to do it? Or at least a clue of what needs to be updated on client side? 回答1: I've changed the bsb template in a lot times and what do is the next: Put the new template elements in the Abp's angular project in the same place that it in the new template, for example if en src/app there is an "Example" folder I copy this to the Abp's template Delete

Can't enable Entity History in ASP.NET Zero

孤人 提交于 2021-02-10 09:22:08
问题 I'm using ASP.NET Zero. Project Version: 5.1.0 and .NET Core 2.0 template. I'm trying to enable Entity History for my entity so that I can see the deleted and old column values for the table. Entity class: [Table("TestingEntity")] [Audited] public class TestingEntity : AuditedEntity , IMayHaveTenant { public int? TenantId { get; set; } public virtual string Code { get; set; } } ApplicationModule class: public class MyCompanyApplicationModule : AbpModule { public override void PreInitialize()

Cannot get header that contains a period from NGINX

女生的网名这么多〃 提交于 2021-02-08 10:10:33
问题 The header "Abp.TenantId" is null because of the "." . If remove the "." (like "AbpTenantId" ), it will be ok. How to add a header with a "." ? ======================================================= localhost debug: Provisional headers are shown (show this on client request) Request.Headers.Unknown (show this in server, api action) Request.Headers.MaybeUnknown (show this in server, api action) localhost is ok. The same code in server, but server error. The code for the tenantId : The logs

Cannot get header that contains a period from NGINX

ⅰ亾dé卋堺 提交于 2021-02-08 10:01:33
问题 The header "Abp.TenantId" is null because of the "." . If remove the "." (like "AbpTenantId" ), it will be ok. How to add a header with a "." ? ======================================================= localhost debug: Provisional headers are shown (show this on client request) Request.Headers.Unknown (show this in server, api action) Request.Headers.MaybeUnknown (show this in server, api action) localhost is ok. The same code in server, but server error. The code for the tenantId : The logs

ASPNET Boilerplate, extending audit log

£可爱£侵袭症+ 提交于 2021-02-05 05:45:28
问题 I am trying to extend the AuditLog entity in ASPNETBOILETPLATE framework in order to add some new properties to it. I have tried to extend the AuditLog class ( ExtendedAuditInfo ) and implement a customised version of AuditStore Class ( ExtendedAuditStore ). However, I am not able to inject my new ExtendedAuditInfo in the constructor and receive two error messages regarding unmatching input parameters in the Constructor and SaveAsync method. Class ExtendedAuditInfo : public class