Hi all!
I have used the RAD tool for my application. Everything worked fine beside the datepicker. I can select a date and it got stored to the object and the database. If I edit the object I get the message "Invalid date".
Where does this come from and how can i solve this issue?
Thanks a lot!
Hi everyone!
I am playing arround with the RAD-Tool and I am wondering what the option "Create View Only Modal" does. I only found high level documentation about the tool but not what the features do in specific.
Can anyone help me with the option "Create View Only Modal"?
Thanks in advance!
Hi Everyone.
I am dealing with various environments and I want to adjust the migrator project to be able to deal with more than one default connection string.
My idea was to use command line arguments f.e. -e environmentName that the appsettings.environmentName.json gets loaded. Unfortunately, I can’t pass that argument to the bootstrapper during startup.
Program.cs
var bootstrapper = AbpBootstrapper.Create<TestMigratorModule>()
So my idea was to reinitialize it with the environment name
using (var test = bootstrapper.IocManager.ResolveAsDisposable<TestMigratorModule>())
{
test.Object.ReInitialize(_environment);
}
So far so good. In my IConfigurationRoot the builder created two configurations. But, in the MultiTenantMigrateExecuter.cs in the Run method there is no way to reference the second configuration.
var hostConnStr = _connectionStringResolver.GetNameOrConnectionString(new ConnectionStringResolveArgs(MultiTenancySides.Host));
if (hostConnStr.IsNullOrWhiteSpace())
{
Log.Write("Configuration file should contain a connection string named 'Default'");
return;
}
My goal is: Basicly I want to copy paste alle appsettings.XYZ.json from the .Web.Host project to the migrator and use the connection string of one of these config files. Another option would be to just add all connection strings with a different name in the appsettings.json of the migrator project. How can I get this done?
Kinde regards! Christian
Hi everyone! We downloaded by mistake a project with .NET 4.6.1 as framework. Unfortunately, we need to have the application on .NET Core 2. Is there a way to manipulate our solution that the target framework is .NET Core 2.1 instead? Thanks in advance! Christian
Hello,
i generated crud operations with the asp.net zero tool for an entity. The modal dialog is to small for creating and editing my entity. So i decided to create a new component and navigate with a routerLink to it. The navigation works, but the opened dropdown stays in the dom of the page until a complete pagereload is done.
<a [routerLink]="exampleRoute" [queryParams]="exampleParams">
Do Something
</a>
as a workaround i added this the function
closeDropdown(event) {
$(event.target).closest('.dropdown-menu').remove();
}
and changed the link to:
<a (click)="closeDropdown($event)" [routerLink]="exampleRoute" [queryParams]="exampleParams">
Do Something
</a>
is this a bug or am i missing something in the routerlink?
thank you
Hi,
i wanted to use pTable in a modal bootstrap dialog.
I used the asp.net zero powertool to generate main components.
In the create or edit modal component i added the p-table from primeNg but no styles are applied to the table.
I have added the class 'primeng-datatable-container' to p-table tag as a workaround.
thx for your help
When extending tables in the database and trying to regenerate or update existing entities, columns with phrase ID and any type except numeric are skipped by the generator.
Example of table with GUID columns:
[Table(nameof(Company))]
public partial class Company : AuditedEntity, IMayHaveTenant, ISoftDelete
{
public int? TenantId { get; set; }
public bool IsDeleted { get; set; }
}
public partial class Company
{
[Column("companyGUID")]
public Guid CompanyGuid { get; set; }
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
... other columns
[Column("hierarchicalFatherGUID")]
public Guid? HierarchicalFatherGuid { get; set; }
[Column("taxGroupFatherGUID")]
public Guid? TaxGroupFatherGuid { get; set; }
[Column("isTaxGroupHead")]
public bool? IsTaxGroupHead { get; set; }
}
When opening 'Load Entity From Database' GUID columns are not detected. Hence created entities and services do not inlcude GUID columns and would overwrite valid entities. To avoid this we manually update entities with dotnet ef tool. We work around this by manually editing Company.json in directory \aspnet-core\AspNetZeroRadTool and then regenerate services and views.
Can you fix this soon?
Thanks a lot!
Hi,
For an actual project we want to modify and extend the frontend .html/.ts files which are generated with the help of the VS "Create an Entity"-Plugin.
Unfortunately the Entities will change in the future.
I think the backend should not be a problem, because it generates Micration classes. But in the frontend it just delete the files?
What is the recommended way to avoid loosing modifications, if we want to use the "Re-generate an Entity" for this? Like I have seen it would completely remove all the change which are done in the corresponding files?
I thought about using a git-repository to merge the old changes and the new generated files.. but I think there should be easier/better ways to do it?
Regards