So I tested this out on a straight project from scratch.
In Abp Suite I created an entity with a name property called 'Card', I then created another Entity called 'Bank' and again gave it the property of name. I set up Bank as a navigation property of Card. This works all good. I can create some Bank types, and then when i create a Card I have the banks in a drop down selector.
However, If i create a new entity which is a child of Card (something like CardVariant), and then try to view the Card page it blows up on mapping with navigation property.
Same thing If go the other way around, Create a Card, and a CardVariant child and its all good, it shows the page with the sub entity drop down in the table. But then if you add the Bank as a navigation property it blows up on mapping again.
Here is my solution config
Exception System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=PropTest.Application StackTrace: at PropTest.MainWithNavigationPropertiesToMainWithNavigationPropertiesDtoMapper.MapToListOfChildOfMainDto(ICollection`1 source) in C:\Dev\Code\Temp\PropTest\src\PropTest.Application\obj\Debug\net10.0\Riok.Mapperly\Riok.Mapperly.MapperGenerator\MainWithNavigationPropertiesToMainWithNavigationPropertiesDtoMapper.g.cs:line 89
I already had this in the global scripts, not sure why that wasn't working, added your bit in and it started working. Is there and documentation for this anywhere? Im not a js dev I only really do C# so I wouldn't know where to look for any of this?
Im using Blazor Server with blazorize. It all updated to the latest version except for blazorize which it on v1.8.1
LeptonXBlazorLayouts.Boxed doesnt exist!
Im finding the documentation to be really lacking in a lot of areas which is a shame. Something as simple as showing/hiding things seems to either be missing or impossible to find.
I want to use the boxed layout, and the light style. Ive managed to force the light style like this, but I cant see any options to force boxed layout. I dont need it to be selectable in the app. not do i need any of the options drop down menus or the breadcrumb area but I seem to be forced to use them or have to figure out how to override templates. Surely there should just be an option to hide the bread crumb, or fix the layout?
private void ConfigureTheme()
{
Configure<LeptonXThemeOptions>(options =>
{
options.DefaultStyle = LeptonXStyleNames.Light;
options.Styles.Remove(LeptonXStyleNames.Dark);
options.Styles.Remove(LeptonXStyleNames.System);
options.Styles.Remove(LeptonXStyleNames.Dim);
});
Configure<LeptonXThemeMvcOptions>(options =>
{
options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
});
Configure<LeptonXThemeBlazorOptions>(options =>
{
options.Layout = LeptonXBlazorLayouts.TopMenu;
});
}
Ah ha!
I updated everything except blazorise and it was all good. But when I updated the 2 blazorise packages the message shows up
Blazorise.Bootstrap5 1.8.1 --> 1.8.2 Blazorize.Icons.FontAwesome 1.8.1 --> 1.8.2
Ill downgrade it for now, but its an odd thing to happen?
When I create a fresh solution there is no message about it being a free version (without adding the license key?)
Also I've been building my current solution for a couple of months and it only started to show the message a week ago?
Which out of the two above ways is the way that 'should' work
Recently been getting the message along the bottom of my application saying I was using the free version, so went through the docs and found how to get the key from them. However there is no guidance on how to actually register it, I've tried the following 2 ways to register in my Blazor Server project but after cleaning and rebuilding I'm still getting the message saying I'm using the free version?
private void ConfigureBlazorise(ServiceConfigurationContext context)
{
// tried adding this way
context.Services
.AddBlazorise(options =>
{
options.Immediate = true;
options.ProductToken = "<token here>";
})
.AddBootstrap5Providers()
.AddFontAwesomeIcons();
// Also tried this
Configure<BlazoriseOptions>(options =>
{
options.ProductToken = "<token here>";
options.Immediate = true;
});
}
Thanks for pointing me in the right direction. I hadn't installed the module manually, I had used the cli as in the instructions
abp add-package Volo.Abp.BackgroundJobs.HangFire
But weirdly when I examined the installed packages it was in there and it has added it to the module class. After removing it from the packages and class it now runs. Thank-you