This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| List<String> myList = [ | |
| 'Angela', | |
| 'James', | |
| 'Katie', | |
| 'Jack', | |
| ]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ProductId,ProductName,UnitsInStock,UnitPrice | |
| 1,Aniseed Syrup,39,18 | |
| 2,Chef Anton's Cajun Seasoning,17,19 | |
| 3,Chef Anton's Gumbo Mix,13,10 | |
| 4,Grandma's Boysenberry Spread,53,22 | |
| 5,Uncle Bob's Organic Dried Pears,0,21.35 | |
| 6,Northwoods Cranberry Sauce,120,25 | |
| 7,Mishi Kobe Niku,15,30 | |
| 8,Ikura,6,40 | |
| 9,Queso Cabrales,29,97 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GameId | Year | Gender | City | Country | Continent | Winner | |
|---|---|---|---|---|---|---|---|
| 1 | 1930 | Men | Montevideo | Uruguay | South America | Uruguay | |
| 2 | 1934 | Men | Rome | Italy | Europe | Italy | |
| 3 | 1938 | Men | Paris | France | Europe | Italy | |
| 4 | 1950 | Men | Rio de Janeiro | Brazil | South America | Uruguay | |
| 5 | 1954 | Men | Bern | Switzerland | Europe | West Germany | |
| 6 | 1958 | Men | Stockholm | Sweden | Europe | Brazil | |
| 7 | 1962 | Men | Santiago | Chile | South America | Brazil | |
| 8 | 1966 | Men | London | England | Europe | England | |
| 9 | 1970 | Men | Mexico City | Mexico | North America | Brazil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -iname "bin" -o -iname "obj" | xargs rm -rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using (var scope = app.Services.CreateScope()) { | |
| var services = scope.ServiceProvider; | |
| var context = services.GetRequiredService<HealthContext>(); | |
| context.Database.Migrate(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE games ( | |
| GameId INTEGER PRIMARY KEY AUTOINCREMENT, | |
| Year INTEGER NOT Null, | |
| Gender TEXT CHECK(Gender IN ('Men', 'Women')) NOT NULL, | |
| City TEXT NOT NULL, | |
| Country TEXT NOT NULL, | |
| Continent TEXT CHECK(Continent IN ( | |
| 'South America', | |
| 'Europe', | |
| 'North America', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE [dbo].[games] ( | |
| [GameId] [int] IDENTITY(1,1) PRIMARY KEY, | |
| [Year] [int] NOT NULL, | |
| [Gender] [varchar](10) NOT NULL CHECK ([Gender] IN ('Men', 'Women')), | |
| [City] [varchar](50) NOT NULL, | |
| [Country] [varchar](50) NOT NULL, | |
| [Continent] [varchar](50) CHECK ([Continent] IN ( | |
| 'South America', | |
| 'Europe', | |
| 'North America', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BeverageId | Name | Type | MainIngredient | Origin | CaloriesPerServing | |
|---|---|---|---|---|---|---|
| 1 | Coca-Cola | Soft Drink | Sugar | United States | 140 | |
| 2 | Pepsi | Soft Drink | Sugar | United States | 150 | |
| 3 | Green Tea | Tea | Green Tea Leaves | China | 0 | |
| 4 | Espresso | Coffee | Coffee Beans | Italy | 5 | |
| 5 | Smoothie | Fruit Drink | Fruit | United States | 250 | |
| 6 | Pina Colada | Cocktail | Coconut Cream | Puerto Rico | 245 | |
| 7 | Lemonade | Soft Drink | Lemon | Ancient Egypt | 120 | |
| 8 | Milkshake | Dairy Drink | Milk | United States | 350 | |
| 9 | Chai | Tea | Black Tea Leaves and Spices | India | 150 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE SchoolDB; | |
| GO | |
| USE SchoolDB; | |
| GO | |
| CREATE TABLE Students | |
| ( | |
| StudentId int IDENTITY(1,1) PRIMARY KEY, | |
| LastName varchar(50) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| StudentId | FirstName | LastName | School | |
|---|---|---|---|---|
| 1 | Tom | Max | Nursing | |
| 2 | Ann | Fay | Mining | |
| 3 | Joe | Sun | Nursing | |
| 4 | Sue | Fox | Computing | |
| 5 | Ben | Ray | Mining | |
| 6 | Zoe | Cox | Business | |
| 7 | Sam | Ray | Mining | |
| 8 | Dan | Ash | Medicine | |
| 9 | Pat | Lee | Computing |
OlderNewer