ISqlSugarEntitySeedData.cs 428 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. namespace Admin.NET.Core
  3. {
  4. /// <summary>
  5. /// 实体种子数据接口
  6. /// </summary>
  7. /// <typeparam name="TEntity"></typeparam>
  8. public interface ISqlSugarEntitySeedData<TEntity>
  9. where TEntity : class, new()
  10. {
  11. /// <summary>
  12. /// 种子数据
  13. /// </summary>
  14. /// <returns></returns>
  15. IEnumerable<TEntity> HasData();
  16. }
  17. }