文件种子数据

This commit is contained in:
陈淳
2022-10-13 14:45:09 +08:00
parent ea4ddb68f3
commit 55ad046e96
14 changed files with 79 additions and 13 deletions

View File

@@ -0,0 +1,27 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Model.Models;
namespace Yi.Framework.Model.SeedData
{
public class FileSeed : AbstractSeed<FileEntity>
{
public override List<FileEntity> GetSeed()
{
FileEntity file1 = new FileEntity()
{
Id = 0,
FilePath = "Image",
FileType = "",
IsDeleted = false,
FileName = "0.jpg"
};
Entitys.Add(file1);
return Entitys;
}
}
}