我有一个扩展 DomainService 抽象类的类,如下所示:
public class ScheduleManager : DomainService, IScheduleManager
Run Code Online (Sandbox Code Playgroud)
以下行不起作用:
throw new UserFriendlyException(L("ScheduleIsNotValid"));
Run Code Online (Sandbox Code Playgroud)
因为:Abp.AbpException:必须先设置LocalizationSourceName,才能获取LocalizationSource
只是想知道设置 LocalizationSourceName 的正确位置在哪里,就像在 MyCarParkControllerBase 中设置但在核心(域)层中设置一样?
顺便说一下,UserRegistrationManager 类中有两种本地化用法:
Line 96 >>> throw new UserFriendlyException(L("UnknownTenantId{0}", tenantId));
Line 101 >>> throw new UserFriendlyException(L("TenantIdIsNotActive{0}", tenantId));
Run Code Online (Sandbox Code Playgroud)
由于同样的问题而失败!
干杯,
我有一个 ASP .Net 核心应用程序。我只是想让我的 AutoMapper 配置为按照此配置将逗号分隔的字符串转换为字符串列表:
configuration.CreateMap<Job, JobDto>()
.ForMember(dto => dto.Keywords, options => options.MapFrom(entity => entity.Keywords.Split(',').ToList()))
Run Code Online (Sandbox Code Playgroud)
由于某种原因,它没有被编译并给我以下错误:
表达式树不能包含使用可选参数的调用或调用
我不明白为什么我会收到这个错误。我很确定我之前在我的其他项目中已经这样做了,没有任何这样的错误。
我有一个 Angular 5 应用程序。我想知道是否有任何方式只为 Angular 5 中的一个模块导入引导程序或任何其他库?
I have successfully integrated SignalR.AspNetCore into my AbpZero template. everything works fine. However when I tried to add a hub into my application like what has been described in the document, I am getting the following error on
public async Task SendMessage(string message)
{
await Clients.All.InvokeAsync("getMessage", string.Format("User {0}: {1}", AbpSession.UserId, message));
}
Run Code Online (Sandbox Code Playgroud)
Error CS1061 'IClientProxy' does not contain a definition for 'InvokeAsync' and no extension method 'InvokeAsync' accepting a first argument of type 'IClientProxy' could be found (are you …