protected override void Up(MigrationBuilder migrationBuilder) { using (var context = DatabaseContextFacory.Create()) { context.Add(new User { Username = "******", Password = "******", PasswordSalt = "5B3E31382A8E9240".HexToByteArray() }); context.SaveChanges(); } }
protected override void Up(MigrationBuilder migrationBuilder) { using (var context = DatabaseContextFacory.Create()) { var nfSoftware = InsertNfSoftware(context); var qframe = InsertQframe(context); var cronos = InsertCronos(context); context.SaveChanges(); InsertAllInvoices(context, nfSoftware, qframe, cronos); context.SaveChanges(); } }