25 lines
668 B
C#
25 lines
668 B
C#
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();
|
|
}
|
|
} |