add support for Db Seeder, Fix GraphQL Generic Usage ...
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user