Пример #1
0
        public static void Seed(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity <StatusEntity>()
            .HasData(Status1, Status2, Status3);

            modelBuilder.Entity <TransactionEntity>()
            .HasData(Transaction1, Transaction2, TransactionInitial1, TransactionInitial2);


            modelBuilder.Entity <UserEntity>()
            .HasData(User1);

            modelBuilder.Entity <ApplicationEntity>()
            .HasData(Application1);

            modelBuilder.Entity <TransactionItem>()
            .HasData(TransactionItem.Create(TransactionInitial1, User1.Id, Application1.Id));
        }