aspnetboilerplate

How to permanently delete values from the database

孤街浪徒 提交于 2019-12-11 17:34:19
问题 I have a method that i call from a javascript, the method suppose to delete the records permanently but it does not go in to the method if the method has DataContext db = new DataContext(); , it gives the error Internal Server Error public void PermanantlyDeleteComment(GetCommentInput input) { DataContext db = new DataContext(); //Follow by the code to delete the comment } If i comment out DataContext db = new DataContext(); the breakpoint does go in. I think the problem is with the

How to add custom function to AbpODataEntityController?

删除回忆录丶 提交于 2019-12-11 16:47:22
问题 In a recent post, there is some suggestion about how to add a custom function to an AbpODataEntityController . I have tried but I can't achieve what I want. For example, in my AbpODataEntityController , there are two methods called Test and EchoTest . public class TownsController : AbpODataEntityController<Town>, ITransientDependency { public TownsController(IRepository<Town> repository) : base(repository) { } // [HttpPost] public string Test() { return "inanc"; } // [HttpPost] // [HttpGet]

No component for supporting the service Abp.Zero.Configuration.IAbpZeroConfig was found

只谈情不闲聊 提交于 2019-12-11 16:13:56
问题 I implemented a custom ExternalLogin exactly like aspnetboilerplate document: public class MyExternalAuthSource : DefaultExternalAuthenticationSource<Tenant, User>, ITransientDependency { public override string Name { get { return "MyCustomSource"; } } public override Task<bool> TryAuthenticateAsync(string userNameOrEmailAddress, string plainPassword, Tenant tenant) { } } and I registered it as: public class ImmenseWebModule : AbpModule { public override void PreInitialize() { Configuration

Multi-tenant authentication, IMustHaveTenant entity in ASP.NET Boilerplate Module Zero

假如想象 提交于 2019-12-11 16:04:19
问题 Multi-Tenant Authentication I have created a new tenant from the swagger UI as an admin and I can check in the data the tenant created successfully together with admin account . Now how do I login as the admin of the newly created tenant? Cos I tried Token-authenticating via Postman, specifying tenancyName in the request body and it only seems to authenticate the admin from default tenant - even when I put in rubbish in the tenancyName field, it won't detect any error or exception. I check

Add a function or parameter to OData controller

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:14:24
问题 I'm using ASP.NET Boilerplate framework for ASP.NET Core. I have the boilerplate OData controllers as per https://aspnetboilerplate.com/Pages/Documents/OData-AspNetCore-Integration. I want to support passing of a custom parameter in either the GET method or in a custom OData function. How do I do this in the AbpODataEntityController ? Regards, David 回答1: Looking at the source code, it looks like they are using the standard "Microsoft.AspNet.OData" Version="7.1.0". So you probably have a place

EF Core with ABP performance issue in huge loops

旧巷老猫 提交于 2019-12-11 13:15:24
问题 I have a background job that processes a list of items. However, the larger the list, the time to complete it grows exponentially. Not just that, the further down the list, the app gradually eats up my server's 64gb ram and slows down the server to a crawl. I use Hangfire as my background job manager, and the job takes a list of id and performs multiple database actions on them. I access the database through ef core, using the repository pattern provided by aspnetboilerplate framework. I

ASP.NET Boilerplate Angular Project Error when npm start

徘徊边缘 提交于 2019-12-11 10:57:03
问题 I use ASP.NET Boilerplate Framework that is based on .Net Core and Angular . I follow directives in this page step by step but when I run npm start I get the following error message: ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'web-animations-js' in'D:\Project_Net\MyProjSPA\angular\src' resolve 'web-animations-js' in 'D:\Project_Net\MyProjSPA\angular\src' Parsed request is a module using description file: D:\Project_Net\MyProjSPA\angular\package.json (relative path: .

How to map objects (DTO) on client side?

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:52:00
问题 Typescript ABP + .NET Core I'm using a grid to insert rows (the grid I'm using is a component of the DevExtreme framework). Anyway, similar to other grids, it raises onRowInserting events when the records are inserted, providing the inserted row as a parameter. I need to convert that "anonymous" object (the inserted data) to my client-side DTO in this event. onRowInserting(e) { let mynewrow: ItemDto = e.data; // e.data contains the inserted row } To better understand what I need to achieve,

Aspnetboilerplate - No Social Login documentation available

牧云@^-^@ 提交于 2019-12-11 09:05:56
问题 It seems there's no documentation regarding Social Login. I went here: https://aspnetboilerplate.com/Pages/Documents/Zero/User-Management#social-logins And the Social Login topic is supposed to be discussed here: https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template Does this means Social Login implementation has been removed from the Boilerplate? 回答1: It was not done for ABP v3.0.0 as there are tutorials for ASP.NET Core 2.x: https://docs.microsoft.com/en-us/aspnet/core

Event bus trigger duplicating

99封情书 提交于 2019-12-11 08:04:16
问题 In the edit modal for my company entity, I open the address entity create modal. This allows the user to create an address for the company. On the .done of the address create app service method, I trigger an event using the abp.event.trigger method. The company edit modal then watches for this event so that it can create an entry into the companyAddress entity. Soon as the companyAddress entity app service method ends, on .done event, I turn off the event trigger. However, after the first