Skip to content

Commit 57fd975

Browse files
authored
Merge pull request #14 from avolutions/develop
Version 0.14.0
2 parents 06aed6b + fb1b264 commit 57fd975

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

src/Avolutions.Baf.Domain.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77

88
<PackageId>Avolutions.Baf.Domain</PackageId>
9-
<Version>0.13.0</Version>
9+
<Version>0.14.0</Version>
1010

1111
<Title>Avolutions BAF Domain</Title>
1212
<Company>Avolutions</Company>
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="Avolutions.Baf.Core" Version="0.13.0" />
32+
<PackageReference Include="Avolutions.Baf.Core" Version="0.14.0" />
3333
<PackageReference Include="FluentValidation" Version="12.0.0" />
3434
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
3535
</ItemGroup>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Avolutions.Baf.Domain.AcademicTitles.Models;
2+
using Avolutions.Baf.Domain.Salutations.Models;
3+
4+
namespace Avolutions.Baf.Domain.Persons.Abstractions;
5+
6+
public interface IPerson
7+
{
8+
public string? FirstName { get; set; }
9+
public string LastName { get; set; }
10+
11+
public Guid? SalutationId { get; set; }
12+
public Salutation? Salutation { get; set; }
13+
14+
public Guid? AcademicTitleId { get; set; }
15+
public AcademicTitle? AcademicTitle { get; set; }
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Avolutions.Baf.Domain.Persons.Abstractions;
2+
3+
namespace Avolutions.Baf.Domain.Persons.Extensions;
4+
5+
public static class PersonExtensions
6+
{
7+
public static string FullName(this IPerson person)
8+
{
9+
return $"{person.AcademicTitle?.Value} {person.FirstName} {person.LastName}".Trim();
10+
}
11+
}

0 commit comments

Comments
 (0)