Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/Addresses/Configurations/AddressConfiguration.cs

This file was deleted.

2 changes: 2 additions & 0 deletions src/Addresses/Models/Address.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
using Avolutions.Baf.Core.Entity.Models;
using Avolutions.Baf.Core.Lookups.Attributes;
using Avolutions.Baf.Domain.Countries.Models;

namespace Avolutions.Baf.Domain.Addresses.Models;
Expand All @@ -14,6 +15,7 @@ public class Address : EntityBase
public decimal? Longitude { get; set; }

public Guid CountryId { get; set; }
[Lookup]
public Country Country { get; set; } = null!;

public override string GetName()
Expand Down
9 changes: 9 additions & 0 deletions src/Addresses/Resources/AddressResources.de.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Addresses/Resources/AddressResources.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@
<data name="Validation.Coords.BothOrNone" xml:space="preserve">
<value>Die Koordinaten sind nur gültig, wenn sowohl {0} als auch {1} angegeben werden.</value>
</data>
<data name="Field.CityWithZipCode" xml:space="preserve">
<value>Ort mit PLZ</value>
</data>
</root>
3 changes: 0 additions & 3 deletions src/Articles/Configurations/ArticleConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ public void Configure(EntityTypeBuilder<Article> builder)
builder.HasIndex(a => a.ArticleNo)
.IsUnique();

builder.Navigation(a => a.QuantityUnit)
.AutoInclude();

builder.Property(a => a.Type)
.HasConversion<string>();

Expand Down
2 changes: 2 additions & 0 deletions src/Articles/Models/Article.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Avolutions.Baf.Core.Entity.Abstractions;
using Avolutions.Baf.Core.Entity.Attributes;
using Avolutions.Baf.Core.Entity.Models;
using Avolutions.Baf.Core.Lookups.Attributes;
using Avolutions.Baf.Domain.QuantityUnits.Models;

namespace Avolutions.Baf.Domain.Articles.Models;
Expand All @@ -16,6 +17,7 @@ public class Article : EntityBase, INavigable
public decimal Price { get; set; }
public decimal TaxRate { get; set; }
public Guid QuantityUnitId { get; set; }
[Lookup]
public QuantityUnit QuantityUnit { get; set; } = null!;
public override string GetName() => $"{ArticleNo} - {Title}";

Expand Down
4 changes: 2 additions & 2 deletions src/Avolutions.Baf.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>

<PackageId>Avolutions.Baf.Domain</PackageId>
<Version>0.17.0</Version>
<Version>0.18.0</Version>

<Title>Avolutions BAF Domain</Title>
<Company>Avolutions</Company>
Expand All @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avolutions.Baf.Core" Version="0.17.0" />
<PackageReference Include="Avolutions.Baf.Core" Version="0.18.0" />
<PackageReference Include="FluentValidation" Version="12.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
</ItemGroup>
Expand Down