small changes
This commit is contained in:
parent
3cffe64240
commit
a280aeedc0
|
@ -11,14 +11,6 @@ namespace EHEC_Server.DataBuilder
|
||||||
{
|
{
|
||||||
public class DataSeeder : EHEC_DBEntities
|
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);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,6 +2,8 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using EHEC_Server.DatabaseAccess;
|
||||||
|
|
||||||
|
|
||||||
namespace EHEC_Server.DataBuilder
|
namespace EHEC_Server.DataBuilder
|
||||||
{
|
{
|
||||||
|
@ -29,6 +31,11 @@ namespace EHEC_Server.DataBuilder
|
||||||
"SanktMonika", "DisneyWorld", "Hell", "Heaven"
|
"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[]
|
private static List<string> Street = new List<string>(new string[]
|
||||||
{
|
{
|
||||||
"Rosenauweg", "Schessstrasse", "Hardstrasse", "Gehweg", "Bananastreet", "Moosweg", "Feldstrasse"
|
"Rosenauweg", "Schessstrasse", "Hardstrasse", "Gehweg", "Bananastreet", "Moosweg", "Feldstrasse"
|
||||||
|
@ -66,22 +73,4 @@ namespace EHEC_Server.DataBuilder
|
||||||
// return Patients;
|
// 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;
|
|
||||||
//}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue