Add relationships feature and EF migration

This commit is contained in:
Holden
2026-06-26 17:06:15 -05:00
parent dbe33f3148
commit b3028ce741
30 changed files with 536 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
using RecNet.Application.Common.Interfaces;
using RecNet.Domain.Profiles.Names;
namespace RecNet.Application.Profiles.Login;
public class NameGenerator(IConfigService configService)
{
public async Task<string> GenerateAsync(CancellationToken ct = default)
{
var config = await configService.GetAsync("Profiles:NameGen", DefaultNameGenConfig.Value, ct);
var adjective = config.Adjectives[Random.Shared.Next(config.Adjectives.Count)];
var noun = config.Nouns[Random.Shared.Next(config.Nouns.Count)];
return $"{adjective}{noun}";
}
}