Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
3,665,64,21431,558,325361,382540,410827,372202,332913,454090,389873,468933,533081,541240,559581,541238,661029,372220,818077,471668,818106,704451,767999,744360,27730,742348,767257,743995,735730,792332,558656,20,1275,382965,13441,26,13894,291805,567951,387439,794182,54,6996,5958,529493,777635,59,30840,315638,784580,113,281575,337492,287398,640684,427996,551949,573604,123,30243,270,30951,289359,72281,275,80381,199291,437066,438017,437454,437500,560647,641024,637129,646825,703346,730496,775005,775009,812268,300,229413,44,226667,753418,766666,401,206281,2263,413,217735,709975,430,230235,230192,230320,280471,448,553,199185,209375,203676,365382,414940,415012,415284,492546,492047,532725,532715,640219,648243,648244,648246,317649,647,55190,505,605,2383,620,181716,252884,635,82115,82052,83371,630933,637,281365,21433,518450,681,156049,690,715,47115,68390,267022,276989,633198,777930,519155,52075,1886,721188,766,410720,768,383738,767455,831,215833,327073,514514,658335,830,316910,869,971,199701,31765,1367,89173,203357,33574
import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "tertip" is now active!');
const editor = vscode.window.activeTextEditor;
let disposable = vscode.commands.registerCommand('tertip.clearSpaces', () => {
public static void Main(string[] args)
{
...
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.WriteTo.MSSqlServer(
connectionString: appSettings.GetConnectionString("DB"),
sinkOptions: sinkOpts,
columnOptions: columnOptions,
public static void Main(string[] args)
{
var sinkOpts = new SinkOptions { TableName = "_Log", AutoCreateSqlTable = true, BatchPostingLimit = 10 };
//ColumnOptions: Veritabanı tablosunun özellikleri burada belirlenir.
//default oluşturulan sütunlar çıkartılabilir, veya yenileri eklenebilir.
var columnOptions = new ColumnOptions
{
AdditionalColumns = new Collection<SqlColumn>
{
public class LogContextMiddleware
{
private readonly RequestDelegate next;
public LogContextMiddleware(RequestDelegate next)
{
this.next = next;
}
public Task Invoke(HttpContext context)
@sametoz
sametoz / Program.cs
Last active May 3, 2020 08:09
Serilog'un birinci seviyesini ifade eder.
public static void Main(string[] args)
{
var appSettings = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build();
var sinkOpts = new SinkOptions { TableName = "_Log", AutoCreateSqlTable = true, BatchPostingLimit = 10 };
Log.Logger = new LoggerConfiguration()
@sametoz
sametoz / model.cs
Created August 25, 2019 23:09
code-first database design
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace RentACar.Models
{
public class Car
{
public int CarID { get; set; }
public string Brand { get; set; }