aspnetboilerplate

Realtime notification not sent

点点圈 提交于 2019-12-11 03:52:08
问题 I am trying to display realtime notification in ASP.NET Boilerplate, but it is not sent. public override async Task<MessagesDto> Create(MessagesCreateDto input) { var MessagesCore = ObjectMapper.Map<MessagesCore>(input); MessagesCore.UserId = Convert.ToInt32(AbpSession.UserId); MessagesCore.CreationId = Convert.ToInt32(AbpSession.UserId); MessagesCore.FromUserId = Convert.ToInt32(AbpSession.UserId); MessagesCore.CreationTime = DateTime.Now; MessagesCore.LastModificationId = Convert.ToInt32

How to use icons with NavigationProvider that are not Material Design?

邮差的信 提交于 2019-12-10 12:25:09
问题 I would like to use icons with the NavigationProvider that are not available in the material design offerings. Inside the SetNavigation method, we build up the Main Menu. There is an option to set the icon property by using the Material Design icon name — for example, the menu item below uses the "people" string to display the png: .AddItem( new MenuItemDefinition( PageNames.Doctors, L("Doctors"), url: "Doctors", icon: "people", requiredPermissionName: PermissionNames.Pages_Doctors ) ) Can

Invalid Tenancy Name

北慕城南 提交于 2019-12-09 07:20:18
问题 I am working on an ASP.NET Boilerplate service project. When I am saving a client, it returns an error: Tenancy Name is not valid The tenancy name contains spaces. TenantDto maps to Tenant object without any error. Database table TenancyName column is nvarchar(64) . Error occurs when it is saving. 回答1: From the documentation on Tenant Management: AbpTenant class defines some base properties, most important ones are: TenancyName : This is unique name of a tenant in the application. It should

'unitOfWork parameter cannot be null' in Background Worker

 ̄綄美尐妖づ 提交于 2019-12-09 03:54:42
问题 I've started getting these errors. It was working perfectly on my previous server. using System; using Abp.Dependency; using Abp.Domain.Repositories; using Abp.Threading.BackgroundWorkers; using EMS.IPs; using System.Threading.Tasks.Dataflow; using System.Threading.Tasks; using System.Linq; using EMS.Contacts; using System.Collections.Concurrent; using Abp.Domain.Uow; using System.Collections.Generic; using EMS.EmailValidation; using Microsoft.AspNetCore.SignalR; using KellermanSoftware

How to map IdentityServer4 Identity to any WebApp (.Net MVC Boilerplate, .Net Core Boilerplate)

这一生的挚爱 提交于 2019-12-09 02:53:06
问题 I'm creating an SSO server, to centralize all users in ActiveDirectory(AD) and manage them there instead of the database of each specific application. To made this server I used IdentityServer4(Idsr4) with Ldap/AD Extension I've setted the Idsr4 to use identity based on AD (this is "centralized identity"), and users now can login on Idsr4 with own AD login/ password The question now is how to map the centralized identity to applications. I want to use same identity user in several

How to do versioning in ASP.NET Boilerplate Web API?

夙愿已清 提交于 2019-12-08 11:39:29
问题 I am trying to do versioning in ASP.NET Boilerplate framework. I have created two versions in Swagger Gen ("v1.0" and "v2.0") and set API version for Web API, but every time I get all API in both versions from Swagger. Startup.cs : AddSwaggerGen in ConfigureServices() : services.AddSwaggerGen(options => { options.SwaggerDoc("v1.0", new Info { Title = "My API", Version = "v1.0" }); options.SwaggerDoc("v2.0", new Info { Title = "My API", Version = "v2.0" }); options.DocInclusionPredicate(

How to use and display PagedResultDto

六月ゝ 毕业季﹏ 提交于 2019-12-08 05:42:06
问题 Using ASPNet Boilerplate, and returning a pagedResultSetDto with the below code, how do I display the page links? public PagedResultDto<ArticleDto> GetAll() { var articleCount = articleRepository.Count(); var t = articleRepository.GetAllIncluding(x => x.articleImage).Include(x => x.Category).Where( x => x.PublishFrom <= DateTime.Now && x.PublishTo >= DateTime.Now && x.Status == PostStatus.Published && x.IsDeleted == false ).OrderByDescending(x=> x.PublishFrom).ToList(); return new

In what Javascript file “abp.services.app” is defined?

℡╲_俬逩灬. 提交于 2019-12-08 03:02:04
问题 I am integrating my own template to ASP.NET Boilerplate and now I am getting JavaScript errors. (function() { $(function() { var _userService = abp.services.app.user; <-- ERROR HERE }) }); In what Javascript file "abp.services.app" is defined? I must be missing to include one of the Javascript file. 回答1: It's defined dynamically when you include AbpServiceProxies/GetAll like https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/AbpCompanyName.AbpProjectName.WebMpa/Views

ASP.NET Boilerplate multiple databases and DbContexts

こ雲淡風輕ζ 提交于 2019-12-07 22:19:54
问题 I want to connect to two databases at once using ASP.NET Boilerplate. I followed this example: https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/MultipleDbContextEfCoreDemo The problem is that only the first context will have all the Abp tables on it. The second context is an existing database, which has none of the Abp tables on it. When I start up the web app, I get this: System.Data.SqlClient.SqlException: 'Invalid object name 'AbpLanguages'.' So obviously it is

Uploading image in ASP.NET Boilerplate

血红的双手。 提交于 2019-12-07 18:46:04
问题 When posting an image, HttpContext.Current.Request is null . Is there any simple way to achieve this? I am using dropzone.js on client side. Project is Angular with Web API (ASP.NET Core 2.0) template. [HttpPost] public HttpResponseMessage UploadJsonFile() { HttpResponseMessage response = new HttpResponseMessage(); var httpRequest = HttpContext.Current.Request; if (httpRequest.Files.Count > 0) { foreach (string file in httpRequest.Files) { var postedFile = httpRequest.Files[file]; var