using EntityFrameworkCoreSample.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EntityFrameworkCoreSample
{
    public class MyClass
    {

        private readonly BloggingContext _context;

        public MyClass(BloggingContext context)
        {
            _context = context;
        }

        public void RunSample()
        {
            // _context.Blogs.ToList().ForEach(b => Console.WriteLine(b.Name));

            //_context.Payments.ToList().ForEach(b => Console.WriteLine(b.Name));

            //_context.WeChatPayments.ToList().ForEach(b => Console.WriteLine(b.Name));

            _context.AlipayPayments.ToList().ForEach(b => Console.WriteLine(b.Name));

        }
    }
}
