39 lines
1.0 KiB
C#
39 lines
1.0 KiB
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>
|
|
{
|
|
/// <summary>
|
|
/// Holds Entity Name ...
|
|
/// </summary>
|
|
string Entity { get; }
|
|
|
|
/// <summary>
|
|
/// Holds Database Name ...
|
|
/// </summary>
|
|
string Database { get; }
|
|
|
|
/// <summary>
|
|
/// Repository Service for Data Manipulation ...
|
|
/// </summary>
|
|
IXBaseRepository<TEntity, TKey> Repository { get; }
|
|
|
|
/// <summary>
|
|
/// DataServiceConfiguration ...
|
|
/// </summary>
|
|
XDataServiceConfiguration DataServiceConfiguration { get; }
|
|
|
|
/// <summary>
|
|
/// do all seeding action by helping of Repositories here ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task Seed();
|
|
}
|
|
} |