New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# Dynamic Proxy error using class. #7298
Comments
hi @mehmetuken
|
Sorry. Steps, public interface IProductAppService : ICrudAppService<
ProductDto,
Guid,
GetProductsInput,
CreateUpdateProductDto> my ProductQueryFilter class. i use repository custom filter. public class ProductQueryFilter
{
public string Sku { get; set; }
public string Name { get; set; }
} my input class public class GetProductsInput : PagedAndSortedResultRequestDto
{
public ProductQueryFilter QueryFilter { get; set; }
public GetProductsInput()
{
QueryFilter = new ProductQueryFilter();
}
} i follow blazor Web Application Development Tutorial my input have class ProductQueryFilter i don't set any query filter dynamic proxy create url like this |
Thanks I will check this. |
I can't rep[roduce it in the unit test method. Can you share a sample project? |
I find i think is irrelevant but problem is any empty generic input set. My example public class ProductQueryFilter
{
public string Sku { get; set; }
public string Name { get; set; }
public Guid? CategoryId { get; set; }
public IEnumerable<Guid> Attributes { get; set; }
public ProductQueryFilter()
{
Attributes = new List<Guid>();
}
} abp/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/UrlBuilder.cs Line 80 in 1771d34
in here is not null but is empty generic using firstParam but not set urlbuilder because is empty. |
My ProductsAppService get input like this c# dynamic proxy if not set any QueryFilter value request like
https://localhost:44315/api/app/product&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0
first element starts & character. I set QueryFilter.Name = ""; empty it's run correctly.
https://localhost:44315/api/app/product?QueryFilter.Name=&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0
i think first element issue dynamic proxy UrlBuilder.
The text was updated successfully, but these errors were encountered: