添加种子数据基础

This commit is contained in:
陈淳
2022-09-19 14:24:13 +08:00
parent 729a563545
commit e8bb256a8d
6 changed files with 118 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
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 UserSeed : AbstractSeed<UserEntity>
{
public override List<UserEntity> GetSeed()
{
UserEntity user = new UserEntity()
{
Name = "大橙子",
UserName = "cc",
Nick = "橙子",
Password = "123456"
};
user.BuildPassword();
Entitys.Add(user);
return Entitys;
}
}
}