-
ABP Framework version: v7.2.2
-
UI type: MVC
-
DB provider: EF Core
-
Tiered (MVC) or Identity Server Separated (Angular): no
-
Exception message and stack trace:
-
Steps to reproduce the issue:"
The modules generated from ABP Suite comes by default with
<Nullable>enable</Nullable>
but the Entities generated with ABP Suite don't follow the Nullable configuration.
Properties are still mapped with
public string MyProperty { get; set; }
instead of
public string? MyProperty { get; set; }
Or method with the following structure
Task> GetListAsync(
string filterText = null,
string code = null,
string name = null,
string sorting = null,
int maxResultCount = int.MaxValue,
int skipCount = 0,
CancellationToken cancellationToken = default
);
This is causing more than 100+ warnings in the compiler because it's not following the Nullable configuration and it requires a lot of code change in the templates of Abp Suite to solve all those warnings.
Is there a chance to disable by default the <Nulllable> Configuration when creating a module or could you please provide us a template for the AbpSuite with this fixes?
Thanks.
1 Answer(s)
-
1
Hi @rafael.gonzales
I've created an internal issue about this. Thank you for the feedback. The question credit is refunded.