Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore;
using RobotNet10.NavigationTune.Shared.Models;
namespace RobotNet10.NavigationTune.Data;
/// <summary>
/// Seed default parameter sets
/// </summary>
public static class DefaultDataSeeder
{
public static async Task SeedAsync(TuningDbContext context)
{
// Seed default parameter set if not exists
if (!await context.ParameterSets.AnyAsync(p => p.IsDefault))
{
var defaultParams = new NavigationParameterSet
{
Id = Guid.NewGuid(),
Name = "Default",
Description = "Default parameter set",
IsDefault = true,
Version = 1
};
context.ParameterSets.Add(defaultParams);
}
await context.SaveChangesAsync();
}
}