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
DECLARE @OrderIdentifier INT= 10248; | |
SELECT p.ProductName, | |
od.ProductID, | |
od.UnitPrice, | |
od.Quantity, | |
od.Discount | |
FROM OrderDetails AS od | |
INNER JOIN Products AS p ON od.ProductID = p.ProductID | |
WHERE od.OrderID = @OrderIdentifier; |
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
DECLARE @CategoryID INT= 2; | |
SELECT P.ProductID, | |
P.ProductName, | |
P.UnitPrice, | |
P.UnitsInStock, | |
P.SupplierID, | |
S.CompanyName AS SupplierName, | |
C.[Name] AS SupplierCountry | |
FROM Products AS P | |
INNER JOIN Suppliers AS S ON P.SupplierID = S.SupplierID |
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
SELECT E.EmployeeID, | |
E.TitleOfCourtesy, | |
E.LastName, | |
E.FirstName, | |
CT.ContactTitle, | |
CONVERT(VARCHAR, E.BirthDate, 1) AS BirthDate, | |
CONVERT(VARCHAR, E.HireDate, 1) AS HireDate, | |
E.Address AS Street, | |
E.City, | |
E.Region, |
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 System; | |
using System.IO; | |
using System.Reflection; | |
namespace ApplicationShortCut | |
{ | |
public class ApplicationServices | |
{ | |
private static readonly string DesktopFolder = | |
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); |
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
Public Class Form1 | |
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load | |
ListBox1.DisplayMember = "Name" | |
ListBox1.DataSource = ResourceImages.GetInstance().BitMaps() | |
End Sub | |
Private Sub GetImageButton_Click(sender As Object, e As EventArgs) Handles GetImageButton.Click | |
PictureBox1.Image = ResourceImages.GetInstance().GetSingleBitMap(ListBox1.Text) | |
End Sub | |
End Class |
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
{ | |
"document ready empty": { | |
"prefix": "dre", | |
"body": [ | |
"<script>", | |
" $(document).ready(function() {", | |
" ${0:}", | |
" });", | |
"</script>" | |
], |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
namespace DescendantsLibrary | |
{ | |
public static class ControlExtensions |
This file has been truncated, but you can view the full file.
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
USE [master] | |
GO | |
/****** Object: Database [NorthWind2020] Script Date: 7/20/2021 10:25:30 AM ******/ | |
CREATE DATABASE [NorthWind2020] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'NorthWind2020', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\NorthWind2020.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB ) | |
LOG ON | |
( NAME = N'NorthWind2020_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\NorthWind2020_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB ) | |
GO |
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 System.Drawing; | |
using System.IO; | |
namespace UtilityLibrary | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
/// <remarks> | |
/// Requires NuGet package |