2025-01-14 17:39:47 -06:00
|
|
|
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)
|
2025-09-05 17:38:05 -05:00
|
|
|
where TModel : BaseModel, new()
|
2025-01-14 17:39:47 -06:00
|
|
|
where TKeyedModel : SDK.Models.IKeyedModel
|
|
|
|
|
{
|
|
|
|
|
return new BulkImportBuilder<TModel, TKeyedModel>(databaseContext);
|
|
|
|
|
}
|
|
|
|
|
}
|