public static void Initialize(PLFAppDbContext context) { context.Database.EnsureCreated(); if (!context.Member.Any()) { var member = new Member() { MobilePhone = "13212345678", Password = "******", NickName = "张三", HeadImageUrl = "" }; context.Member.Add(member); context.SaveChanges(); } }
public BaseRepository(PLFAppDbContext _context) { this.context = _context; }
public MemberRepository(PLFAppDbContext context) : base(context) { }
public GoodsCategoryRepository(PLFAppDbContext _context) : base(_context) { }
public GoodsRepository(PLFAppDbContext context) : base(context) { }