Professional Documents
Culture Documents
</iframe>
# Followed by the id
Example:
http://www.example.org/foo.html#bar
- <b> is only for visuals (make the text bold) 11. Canvas tag:
- <strong> means the text is important: it will affect how
(Draw pixel/bitmap pictures)
search engines and text-to-speech engines read the text.
Example:
8. Meta tag to enable responsive rendering on Mobile:
<canvas id="myCanvas" width="200" height="100"
viewport style="border:1px solid #000000;">
Example: </canvas>
<meta name="viewport" <script>
content="width=device-width, initial-scale=1.0"> var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
// Create gradient
var grd = ctx.createLinearGradient(0, 0, 200, 0);
grd.addColorStop(0, "red");
grd.addColorStop(1, "white");
9. CORS:
3. Get a single record from an EF:
Command query responsibility
First-Find-Single
segregation is a pattern that treats
4. Register a class that will should be retrieving data and changing data
created once per request in ASP.NET Core differently.
dependency injection?: The read model should be different than
AddScoped the command model
10. Event Bus:
5. Create an Enum that can hold multiple Allows different services to
values at once: communicate with each other without
[Flags] attribute knowing about each other using events.
5. Standard Authentication library for ASP.Net
core:
Microsoft Identity
7. Disadvantages of integer keys:
Security, someone can guess the next
record key
8. Index:
1. What is a Transaction: Retrieve data from a large database
It gives us the ability to safely perform very fast
multiple SQL queries without allowing
other contexts to modify the data while
the
transaction is running.
2. When to use a Transaction:
When we want to ensure the a set of
queries get executed together or fail
together.
3. Eliminate duplicate records from
the results of a select query:
Distinct.
4. Disadvantages of transactions:
Performance.
5. Advantages of stored procedures:
Performance.