Hi same error again. I also have created the constructor.
DatabaseBlob -> BlobDto (Destination member list) Volo.Abp.BlobStoring.Database.DatabaseBlob -> IT42Portal.AssetManagement.Blob.BlobDto (Destination member list)
BlobDto -> DatabaseBlob (Source member list) IT42Portal.AssetManagement.Blob.BlobDto -> Volo.Abp.BlobStoring.Database.DatabaseBlob (Source member list)
DatabaseBlob -> CreateBlobDto (Destination member list) Volo.Abp.BlobStoring.Database.DatabaseBlob -> IT42Portal.AssetManagement.Blob.CreateBlobDto (Destination member list)
How can I select the extensions properties from the DatabaseBlob in the mapper ? I always got a exception I tried to acces the properties like this
.ForPath(dest => dest.ExtraProperties["Category"], opt => opt.MapFrom(src => src.Category))
Finally I found the solution
.ForMember(dest => dest.ExtraProperties, opt => opt.MapFrom(r => new Dictionary<string, object>() { { "Category", r.Category }, .... and so on))
Maybe this will help others. Thank you maliming for your help.
I have extended the DataBaseBlobContainer class with a new field a foreign key. In my service I want to create query which used the extended property but I cant it access after I get the IQueryable.
IQueryable<DatabaseBlobContainer> queryable = (await _databaseBlobContainerRepository.GetQueryableAsync())
.. here I want to use it
how can I do this ?
Thanks you very much !
Hello, I have a issue with one of the helper tags. I used the following tag in a modal:
<abp-input asp-for="Project.StartDate" type="date"/>
If I change the application language the date format of the date picker does not change. The format always have the same date format as the OS. I have tried to change it with the asp-format in the tag and the DisplayFormat annotation on the property.
Is there any other way to change the date format or need I to use a classic input tag with a jquery datepicker ?
Hi, no. Only the OS date format are always applied.
Yes it should but the datepicker does not change the format when I change the language. Some possibility to set a specific dateformat for the datepicker?
Hello how can I switch between sql server and mongo db in the module template? Currently when I start the module template only the sql server Database is used for the application. When I change the default connectionstring to the mongoDb connection string I got an error.
I guess I need to change something in the ModuleName.Web.Unified
public UnifiedDbContext CreateDbContext(string[] args)
{
var configuration = BuildConfiguration();
var builder = new DbContextOptionsBuilder<UnifiedDbContext>()
.UseSqlServer(configuration.GetConnectionString("Default"));
return new UnifiedDbContext(builder.Options);
}
and here
Configure<AbpDbContextOptions>(options =>
{
options.UseSqlServer();
});
My Appsetting
{
"ConnectionStrings": {
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=DemoModule_Unified;Trusted_Connection=True",
"Mongo": "mongodb://localhost:27017/DemoModule_Unified"
}
}
Same for me. We have tried to create a Angular application template v5.3.4 today for a new project and we got this error message: We have tried it with both (abp suite and the abp cli).
[13:34:47 INF] Using cached template: app-pro, version: 6.0.0 [13:34:48 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.RemoveUnnecessaryDbMigratorClients(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 56 at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.Execute(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 15 at Volo.Abp.Cli.ProjectBuilding.Building.ProjectBuildPipeline.Execute() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Building\ProjectBuildPipeline.cs:line 19 at Volo.Abp.Cli.ProjectBuilding.TemplateProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\TemplateProjectBuilder.cs:line 120 at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 74 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 161 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 69