Files
zsxt_nbzs_h5/Api/Ewide.Core/SeedData/SysAreaCodeData.cs

24 lines
816 B
C#

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ewide.Core
{
public class SysAreaCodeData : IEntitySeedData<SysAreaCode>
{
public IEnumerable<SysAreaCode> HasData(DbContext dbContext, Type dbContextLocator)
{
return new[]
{
new SysAreaCode{Code="3302",ShowCode="3302",Name="XX市",Note="XX市",LevelType=1,Sort=0 },
new SysAreaCode{Code="330266",ShowCode="330266",Name="测试区",Note="测试区",LevelType=2,Sort=100 },
new SysAreaCode{Code="330266001",ShowCode="330266001",Name="测试街道",Note="测试街道",LevelType=3,Sort=0},
};
}
}
}