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 @kindId UNIQUEIDENTIFIER = '2E42CD9A-66FA-471E-BA75-5A74D36E05D3'; -- place target Kind here | |
| DECLARE @folderId UNIQUEIDENTIFIER = 'D0134C4C-2B33-45BC-9B3A-EEFCEF855C87'; -- place target Folder here | |
| SELECT | |
| [DocMainInfo].[InstanceID] AS [CardID], | |
| [InstanceDates].[CreationDateTime], | |
| @folderId AS [FolderID] | |
| FROM [dbo].[CardDocument::MainInfo] AS [DocMainInfo] | |
| INNER JOIN [dbo].[dvsys_instances_date] AS [InstanceDates] ON ([InstanceDates].[InstanceID] = [DocMainInfo].[InstanceID]) | |
| INNER JOIN [dbo].[CardDocument::System] AS [DocSystemInfo] ON ([DocSystemInfo].[InstanceID] = [DocMainInfo].[InstanceID]) |
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 @First TABLE | |
| ( | |
| [InstanceID] UNIQUEIDENTIFIER NOT NULL | |
| ); | |
| DECLARE @Second TABLE | |
| ( | |
| [CogProgramOptions] VARCHAR(MAX) NOT NULL, | |
| [SomeOtherValue] INT 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
| $asm = [System.Reflection.Assembly]::Load("System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"); | |
| $client = New-Object -TypeName System.Net.Http.HttpClient; | |
| $url = "https://sandbox-api.coinmarketcap.com/v1/cryprocurrency/listings/latest?start=0&limit=5000&convert=USD,EUR"; | |
| $msg = New-Object -TypeName System.Net.Http.HttpRequestMessage -ArgumentList ([System.Net.Http.HttpMethod]::Get, $url); | |
| $msg.Headers.Accept.Add("application/json"); | |
| $msg.Headers.Add("X-CMC_PRO_API_KEY", "b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c"); | |
| $response = $client.SendAsync($msg); | |
| $response.Result |
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.Net; | |
| using System.Threading.Tasks; | |
| using System.Web.Mvc; | |
| using NetMvcExample.Models; | |
| namespace NetMvcExample.Controllers |
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.Data; | |
| using System.Data.Entity; | |
| using System.Data.Entity.Infrastructure; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
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.ComponentModel.DataAnnotations; | |
| using System.Linq; | |
| using System.Web; | |
| namespace MyBooks.Models | |
| { | |
| public class Book | |
| { |
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 all required tables | |
| CREATE TABLE [dbo].[Abonents] | |
| ( | |
| [Id] BIGINT NOT NULL IDENTITY(1, 1) PRIMARY KEY NONCLUSTERED, | |
| [FirstName] NVARCHAR(64) NOT NULL, | |
| [LastName] NVARCHAR(64) NOT NULL, | |
| [Phone1] VARCHAR(20) NULL, | |
| [Phone2] VARCHAR(20) 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Diagnostics; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace CodeSamples.Common.Diagnostics | |
| { |
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 SomeCalcController : Controller | |
| { | |
| public ActionResult DoCalc(SomeCalc calc) | |
| { | |
| calc.DoCalc(); | |
| calc.Save(); | |
| } | |
| } |
NewerOlder