LANCommander/LANCommander.Launcher.Services/Extensions/DatabaseContextExtensions.cs
2025-09-05 17:38:05 -05:00

16 lines
No EOL
530 B
C#

using LANCommander.Launcher.Data;
using LANCommander.Launcher.Data.Models;
using LANCommander.Launcher.Models;
namespace LANCommander.Launcher.Services.Extensions;
public static class DatabaseContextExtensions
{
public static BulkImportBuilder<TModel, TKeyedModel> BulkImport<TModel, TKeyedModel>(
this DatabaseContext databaseContext)
where TModel : BaseModel, new()
where TKeyedModel : SDK.Models.IKeyedModel
{
return new BulkImportBuilder<TModel, TKeyedModel>(databaseContext);
}
}