Compare commits

...

1 Commits

Author SHA1 Message Date
ismail a280aeedc0 small changes 2018-06-27 18:10:20 +02:00
2 changed files with 8 additions and 27 deletions

View File

@ -11,14 +11,6 @@ namespace EHEC_Server.DataBuilder
{
public class DataSeeder : EHEC_DBEntities
{
//protected override void Seed(EHEC_DBEntities context)
// {
//var doctors = GenerateDataBuilder.CreateDoctors();
// foreach (var d in doctors)
// {
// // context.Doctor.Add(d);
// }
// }
}
}

View File

@ -2,6 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EHEC_Server.DatabaseAccess;
namespace EHEC_Server.DataBuilder
{
@ -29,6 +31,11 @@ namespace EHEC_Server.DataBuilder
"SanktMonika", "DisneyWorld", "Hell", "Heaven"
});
private static List<string> Regions = new List<string>(new string[]
{
"SanktMonika", "DisneyWorld", "Hell", "Heaven"
});
private static List<string> Street = new List<string>(new string[]
{
"Rosenauweg", "Schessstrasse", "Hardstrasse", "Gehweg", "Bananastreet", "Moosweg", "Feldstrasse"
@ -66,22 +73,4 @@ namespace EHEC_Server.DataBuilder
// return Patients;
}
// public static List<Doctor> CreateDoctors()
//{
//int Counter = Patients.Count();
//for (int i = 0; i < Counter; i++)
// foreach (var c in FirstNames)
//{
// for (int j = 0; j < 10; j++)
//{
// Doctor doctor = new Doctor(
// FirstNames[Rnd.Next(1, FirstNames.Count())],
// LastNames[Rnd.Next(1, LastNames.Count())],
//DoctorOrigins[Rnd.Next(1, DoctorOrigins.Count())]);
//Doctors.Add(doctor);
//}
//}
//return Doctors;
//}
}
}