Skip to content

Instantly share code, notes, and snippets.

View ImShizer's full-sized avatar
🦅
Democracy to everyone

Shizer ImShizer

🦅
Democracy to everyone
View GitHub Profile
using Dapper;
using Microsoft.Data.SqlClient;
using System;
public class Customer
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public DateTime BirthDate { get; set; }
public class Coffee
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public decimal Cost { get; set; }
public int Grams { get; set; }
public string Country { get; set; }
}
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public string Type { get; set; }
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Text;
class Program
{
static void Main()
{
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<connectionStrings>
<add name="conn"
providerName="System.Data.SqlClient"
connectionString="Data Source=localhost;Initial Catalog=Fruits and Vegetables;Integrated Security=True;" />
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<connectionStrings>
<add name="conn"
providerName="System.Data.SqlClient"
connectionString="Data Source=localhost;Initial Catalog=Teas;Integrated Security=True;" />
using System;
using System.Diagnostics;
using System.Threading;
class Program
{
static bool isRunning = true;
static void Main()
{
while (true)
using System;
using System.IO;
using System.Threading.Tasks;
class Program
{
static void Main()
{
Console.WriteLine("Введіть текст:");
string inputText = Console.ReadLine();
using System;
using System.IO;
using System.Threading;
class Program
{
static Mutex mutex = new Mutex();
static bool firstThreadDone = false;
static bool secondThreadDone = false;
static bool thirdThreadDone = false;
using System;
using System.Threading;
class Program
{
static void Main()
{
Console.WriteLine("Введіть верхню межу діапазону для генерації простих чисел (або натисніть Enter для нескінченного діапазону): ");
string upperLimitInput = Console.ReadLine();
int upperLimit;