19 lines
661 B
C#
19 lines
661 B
C#
using System.Threading.Tasks;
|
|
using xDataService.Configuration;
|
|
|
|
namespace xDataService.Interfaces {
|
|
/// <summary>
|
|
/// Db Seeder used to seed data on Database on startup time ...
|
|
/// </summary>
|
|
public interface IXDbSeeder {
|
|
IXDbSeederConfig Config { get; }
|
|
XDataServiceConfiguration DataServiceConfiguration { get; }
|
|
|
|
/// <summary>
|
|
/// do all seeding action by helping of Repositories here ...
|
|
/// don't forget to check UpdateExists value on IXDbSeederConfig for prevent system of duplicate Entity adding on startups ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task Seed ();
|
|
}
|
|
} |