public static void Main()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture =
                System.Globalization.CultureInfo.InvariantCulture;

            Console.WriteLine("USE . !!!");
            Console.WriteLine();
            Console.WriteLine("if you are with EXPRESS change conection string in app.config file  PLEASE!\n\n");

            db = new CompanyEntities();

            db.Configuration.AutoDetectChangesEnabled = false;

            randomDataGenerator = RandomDataGenetator.Instance;

            int numberOfDepartments = 100;
            AddDepartments(numberOfDepartments);

            int numberOfProjects = 1000;
            AddProjects(numberOfProjects);

            int numberOfEmployees = 5000;
            AddEmployees(numberOfEmployees);

            int numberOfReports = 25000;
            AddReports(numberOfReports);

            AddProjectsToEmployees();
        }
Esempio n. 2
0
        public static void Main()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture =
                System.Globalization.CultureInfo.InvariantCulture;

            Console.WriteLine("USE . !!!");
            Console.WriteLine();
            Console.WriteLine("if you are with EXPRESS change conection string in app.config file  PLEASE!\n\n");

            db = new CompanyEntities();

            db.Configuration.AutoDetectChangesEnabled = false;

            randomDataGenerator = RandomDataGenetator.Instance;

            int numberOfDepartments = 100;

            AddDepartments(numberOfDepartments);

            int numberOfProjects = 1000;

            AddProjects(numberOfProjects);

            int numberOfEmployees = 5000;

            AddEmployees(numberOfEmployees);

            int numberOfReports = 25000;

            AddReports(numberOfReports);

            AddProjectsToEmployees();
        }