add support for Db Seeder, Fix GraphQL Generic Usage ...

This commit is contained in:
2026-05-11 23:24:10 +03:30
parent 07f4435f9a
commit 3bb6042b31
13 changed files with 1237 additions and 396 deletions
+25
View File
@@ -0,0 +1,25 @@
using System.Threading.Tasks;
using xDataService.Configuration;
using xModels.Base;
namespace xDataService.Interfaces
{
/// <summary>
/// Db Seeder used to seed data on Database on startup time ...
/// </summary>
public interface IXBaseDbSeeder<TEntity, TKey>
where TEntity : XBaseEntity<TKey>
{
string Database { get; }
IXBaseRepository<TEntity, TKey> Repository { get; }
XDataServiceConfiguration DataServiceConfiguration { get; }
/// <summary>
/// do all seeding action by helping of Repositories here ...
/// </summary>
/// <returns></returns>
Task Seed();
}
}