예제 #1
0
        public void TestSetUp()
        {
            BloodDonorInitalizeDb db = new BloodDonorInitalizeDb();

            Database.SetInitializer(db);
            BloodDonorContext con = new BloodDonorContext();

            con.Database.Initialize(true);
            con.Database.CreateIfNotExists();
            repo = new BloodDonorRepository();
        }
예제 #2
0
        static void Main(string[] args)
        {
            BloodDonorInitalizeDb db = new BloodDonorInitalizeDb();

            Database.SetInitializer(db);
            BloodDonorContext con = new BloodDonorContext();

            con.Database.Initialize(true);
            con.Database.CreateIfNotExists();
            repo = new BloodDonorRepository();
            var a = repo.GetBloodDonors();
        }