Activities of "alper"

Answer

you can set an empty string to table prefix. but you need to clear the DG Migrations and regenerate them.

I'm adding @Engin the author of this article. maybe he knows it

we use Blazorise DataGrid in the Blazor template. And you can also use Nested fields in datagrid. https://blazorise.com/docs/extensions/datagrid/#nested-fields

as a summary, this doesn't seem to be a framework issue and we are talking about EF Core functionality.

Answer

this is not related to Docker. Can you run the project in Release mode, it must throw the same exception. it seems like you have an embedded resource in /Yiki.CoFarm.Domain.Shared/ and its path is not correct

Be aware that Unit Test module will not initialize when you are using a real IWebHostEnvironment . And you have a IWebHostEnvironment argument in the constructor of the ApplicationService. You need to mock WebHostEnvironment in order to get it run. Because there's no real WebHostEnvironment in the test phase:


Mock class for IWebHostEnvironment:

WebHostEnvironmentMock.cs

public class WebHostEnvironmentMock : IWebHostEnvironment
    {
        public string EnvironmentName { get; set; }
        public string ApplicationName { get; set; }
        public string ContentRootPath { get; set; }
        public IFileProvider ContentRootFileProvider { get; set; }
        public IFileProvider WebRootFileProvider { get; set; }
        public string WebRootPath { get; set; }

        public WebHostEnvironmentMock()
        {
            var absoluteRootPath = Path.GetFullPath(string.Format("..{0}..{0}..{0}..{0}..{0}src{0}Siemens.NMM.Web, System.IO.Path.DirectorySeparatorChar));
            ContentRootPath = absoluteRootPath; //absolute path to your Web project
            WebRootPath = Path.Combine(absoluteRootPath, "wwwroot"); //this should point to wwwroot of your Web project
        }
    }


Replace the implementation of IWebHostEnvironment to your mock class:

NMMApplicationTestModule.cs

public class NMMWebTestModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        var configuration = context.Services.GetConfiguration();
        context.Services.AddSingleton<IWebHostEnvironment>(new WebHostEnvironmentMock());
    }
}

This doesn't seem to be related to the ABP Framework.

See these:

  • https://github.com/npgsql/efcore.pg/issues/225#issuecomment-356307586
  • https://github.com/npgsql/efcore.pg/issues/225#issuecomment-532313931
Answer

that's for MVC projects. Sorry but there's no Angular components for Bootstrap.

Answer

license team has contacted you via email.

yes correct

ABP Framework is using the following library for Dynamic LinQ Queries

  • https://www.nuget.org/packages/System.Linq.Dynamic.Core

In the old versions of EF (like EF6 it was supported) but in EF Core you cannot write a query and use a string sortable field.

On the other hand, you can write a query like below:

using System.Linq.Dynamic.Core;


  var dbSet = await GetDbSetAsync();
            return await dbSet
                .WhereIf(
                    !filter.IsNullOrWhiteSpace(),
                    author => author.Name.Contains(filter)
                 )
                .OrderBy(sorting)
                .Skip(skipCount)
                .Take(maxResultCount)
                .ToListAsync();

this notation is frequently used in our samples => https://docs.abp.io/en/abp/latest/Tutorials/Part-7?UI=MVC&DB=EF

but again afaik you cannot write such a query:

var query = from supplyNetwork in queryable
                join networkType in _networkTypeRepository on supplyNetwork.NetworkTypeId equals networkType.Id
                orderby input.Sorting // it is not supported by EF Core
                select new { supplyNetwork, networkType }

you can use it like;

query = query.OrderBy(input.Sorting);

PS: don't forget to import using System.Linq.Dynamic.Core

Showing 1121 to 1130 of 2067 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.