"hakan.uskaner" की गतिविधियाँ

  • ABP Framework version: v5.1.3
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

In my Application Module i would like to configure the JsonIgnoreCondition. I did take a look at https://docs.abp.io/en/abp/latest/JSON I used AbpSystemTextJsonSerializerOptions, what did not work as expected.

I use this code in my Application Module:

I am not sure this is a bug or i am missing something ? I would expect after reading the documentation that the first way should work.

I had some trouble here to paste the code from above. all strings between the square brackets are deleted : this becomes: options.AddMaps(), (a bug here in the editor ?)

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.1.3
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

We generated our base code with abp suite. It does generate in every entity repository a IQueryable<T> ApplyFilter Function. Asume that you have over 100.000 Entries for an entity.

a) We would like to have the ability to get only a few selected items (as List<Guid>) from the database. So similar to filterText we want to add a parameter filterIds to be able to get only these Ids as result.

Normally you would provide for every Entity like Car something like this:

   public static class QueryableExtensions
   {
        public static IQueryable<Car> IncludeFilterIds(
          this IQueryable<Car> queryable,
          List<Guid> filterIds = null)
        {
            if (!filterIds.IsNullOrEmpty())
            {
                return queryable
                    .WhereIf(!filterIds.IsNullOrEmpty(), e => filterIds.Contains(e.Id));
            }
            return queryable;
        }
   }

I would like to have this ability for every entity, so i tried;

    public static class QueryableExtensions
    {
        public static IQueryable<IEntity<Guid>> IncludeFilterIds(
          this IQueryable<IEntity<Guid>> queryable,
         List<Guid> filterIds = null)
        {
            if (!filterIds.IsNullOrEmpty())
            {
                return queryable
                    .WhereIf(!filterIds.IsNullOrEmpty(), e => filterIds.Contains(e.Id));
            }
            return queryable;
        }

I did call it with:

  var query = ApplyFilter((await GetQueryableAsync()), filterText, filterIds, name, description);
       query = (IQueryable<Car>) query.IncludeFilterIds(filterIds);

But this wont work as expected.causing a casting exception. Of course i can us instead of "IEntity<Guid>" "dynamic" as type, but then i wont have the Id Field, and will need to get it per reflection.

What is here the best approach ? In your examples at https://docs.abp.io/en/abp/latest/Repositories you implement the IQueryable Logic at Application Level. Is this suggested instead of Entity Framework Level ?

b) I further would like to limit the properties in a generic way. Sometimes you need only one field like Id instead the whole table. ( so instead select * from db , i would use select id from db) For a known data type i could expand above solution with:

return queryable
 .WhereIf(!filterIds.IsNullOrEmpty(), e => filterIds.Contains(e.Id));
 .Select(p => new { p.Id });

But again if i want to do it an an generic way , i will first need to implement a parameter like List<string> proplist and then add it to the query without knowing the datatype. Do you got an idea howto achieve that ?

I think both functionaltities can be used everywhere..

Hope, you could help.,

Hi ABP Support,

1)

i find it hard to use your forum and find relevant posts.

  • Per example I couldn't search for a string like "Unknown client or client not enabled" or "Bad Request" ... All found results are only single word.. I tried searching with slashes, doubleslashes and +.. None worked...
  • Your forum is also slow.. if i try to open the open issues for 4.4.2 it take a really lot time to display it.
  • If you Post a message , there should be a preview button. Also code highlighting would be great and better to read.
  • We are here developers.. so it should be able to open a post and attach some code samples. but its not possible to attach any files. you could also allow uploading up to 30mb code samples .. so it would be easier to exchange with you.

You should at least provide a Link like the other above in the forum Howto search here.... It would be great if you could find a better way for use... like Github or whateveer forum..

2) I find it not suitable that there is no FeedBack Portal for the commcercial Part of ABP like here for Example : https://www.syncfusion.com/feedback I would like to post in such a forum especially Feature Requests for all your modules, for abp suite for example. You could see which feature Request gains the mosts Interest and we could follow better that requests. I did try posting such requests in the past in github, but it seems not to work good for me..

I wrote this here and opened a ticket because coudn't find better informations from you.. This is not customer oriented. I hope you are interested in our input as customer how to get things better here for us.

  • ABP Framework version: v4.4.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: "The process cannot access the file xxx because it is being used by another process."
  • Steps to reproduce the issue:"

I am using a Syncfusion Component similar to the ABP FileManager for handling large Files Upload. We use it because it supports asynchron chunk uploads,what is necessary for us. large Files means files bigger than 30mb up to 50GB like Windows OS Isos or a virtual disk.

Our Project was created with ABP 4.3.2 and that upload parts runs without problems. I tested an an windows 10 machine with visual studio (without any antivirus /windows defender deactivated for repo folder)

I did prepare a working sample for you. Just contact me per Mail and i provide you the link.

  • We did ugrade to 4.4.2 that solution with " abp switch-to-stable"
  • Corrected in Blazor.csproj the PackagaReferences to the right version (abp seems to miss that !): <PackageReference Include="Blazorise.Bootstrap" Version="0.9.4.1" /> <PackageReference Include="Blazorise.Icons.FontAwesome" Version="0.9.4.1" />
  • Run the project and uploaded a file bigger than 30mb.. an executeable or big zipfile

With ABP 4.3.2 we get this:

With ABP 4.4.2 we get an error at the FileManagerController.cs (Line 173). Check this after you get the code.

So please check the reason for that issue.

Besides that technical problem, i would like to know:

  • How can i search in a good way in your support forum. Your search doesn't seem to combine search results when i try " 400 BadRequest" or something ? Is it somewhere documents how to use it ? So the most time i dont find accurate posts like at github or like in other forums
  • How is it possible with ABP-Cli to downgrade to an earlier version. I tried to uninstall and install 4.3.2, but it still installed the 4.4.2 packages

I hope you answer all my questions. and we fix that problem soon.

14 प्रविष्टियों में 11 से 14 दिखा रहा है
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11