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.
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:
that's for MVC projects. Sorry but there's no Angular components for Bootstrap.
license team has contacted you via email.
yes correct
ABP Framework is using the following library for Dynamic LinQ Queries
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