コード例 #1
0
ファイル: CountryController.cs プロジェクト: Bestdes/Lab10
        public CountryController()
        {
            Country usa = new Country();

            usa.Name      = "United States of America";
            usa.Continent = "North America";
            usa.Colors    = new List <string> {
                "red", "white", "blue"
            };
            CountryDb.Add(usa);

            Country jamaica = new Country();

            jamaica.Name      = "Jamaica";
            jamaica.Continent = "North America";
            jamaica.Colors    = new List <string> {
                "green", "gold", "black"
            };
            CountryDb.Add(jamaica);

            Country spain = new Country();

            spain.Name      = "Spain";
            spain.Continent = "Europe";
            spain.Colors    = new List <string> {
                "red", "gold"
            };
            CountryDb.Add(spain);

            Country rwanda = new Country();

            rwanda.Name      = "Rwanda";
            rwanda.Continent = "Africa";
            rwanda.Colors    = new List <string> {
                "blue", "yellow"
            };
            CountryDb.Add(rwanda);

            Country germany = new Country();

            germany.Name      = "Germany";
            germany.Continent = "Europe";
            germany.Colors    = new List <string> {
                "black", "red", "gold"
            };
            CountryDb.Add(germany);
        }
コード例 #2
0
ファイル: CountryTable.cs プロジェクト: ngortsuev/WebProjects
 public CountryTable(CountryDb injectDb)
 {
     db = injectDb;
 }
 public CountryRepository()
 {
     _db = new CountryDb();
 }
コード例 #4
0
 public ActivityRepository()
 {
     _db = new CountryDb();
 }
コード例 #5
0
 public RegionList(CountryDb injectDb)
 {
     db = injectDb;
 }
コード例 #6
0
 public CountryController(CountryDb countryDb)
 {
     db = countryDb;
 }
コード例 #7
0
 public ContinentList(CountryDb injectDb)
 {
     db = injectDb;
 }
コード例 #8
0
 public RegionController(CountryDb countryDb)
 {
     db = countryDb;
 }
コード例 #9
0
 public AddressController(CountryDb injectDb)
 {
     db = injectDb;
 }
コード例 #10
0
 public ContinentController(CountryDb injectDb)
 {
     db = injectDb;
 }
コード例 #11
0
 public StreetController(CountryDb countryDb)
 {
     db = countryDb;
 }