Beispiel #1
0
        public CitiesController()
        {
            var connString = "server=localhost;port=3306;database=world;userid=root;pwd=123456;sslmode=none";
            WorldDbContextFactory worldDbContext = new WorldDbContextFactory();

            this.dbContext = worldDbContext.Create(connString);
        }
Beispiel #2
0
        public ParcelsController()
        {
            //Change values here to sql server host, username, password, etc
            var connString = "server=localhost;port=3306;database=logistics;userid=root;pwd=Passw0rd123;sslmode=none";

            this.dbContext = WorldDbContextFactory.Create(connString);
        }
Beispiel #3
0
        public CityController()
        {
            var connString = "server=localhost;port=3306;database=world;userid=root;pwd=Zewail@1995;sslmode=none";

            dbContext = WorldDbContextFactory.create(connString);
        }
Beispiel #4
0
        public CountriesController()
        {
            var connString = "server=localhost;port=3306;database=world;userid=root;pwd=rootpass;sslmode=none";

            this.dbContext = WorldDbContextFactory.Create(connString);
        }
        public CitiesController()
        {
            var connectionString = "server=localhost;port=3306;database=world;userid=root;pwd=Gearsofwar#3;sslmode=none";

            this.dbContext = WorldDbContextFactory.Create(connectionString);
        }
Beispiel #6
0
        public CitiesController()
        {
            string connectionString = "server=localhost;port=3306;database=world;userid=root;pwd=68windingbrook;sslmode=none";

            this.cityDbContext = WorldDbContextFactory.Create(connectionString);
        }