This file contains 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 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; } |
This file contains 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 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; } | |
} |
This file contains 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.SqlClient; | |
public class Product | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string Type { get; set; } |
This file contains 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.Configuration; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Text; | |
class Program | |
{ | |
static void Main() | |
{ |
This file contains 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
<?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;" /> |
This file contains 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
<?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;" /> |
This file contains 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.Diagnostics; | |
using System.Threading; | |
class Program | |
{ | |
static bool isRunning = true; | |
static void Main() | |
{ | |
while (true) |
This file contains 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.Threading.Tasks; | |
class Program | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Введіть текст:"); | |
string inputText = Console.ReadLine(); |
This file contains 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.Threading; | |
class Program | |
{ | |
static Mutex mutex = new Mutex(); | |
static bool firstThreadDone = false; | |
static bool secondThreadDone = false; | |
static bool thirdThreadDone = false; |
This file contains 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.Threading; | |
class Program | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Введіть верхню межу діапазону для генерації простих чисел (або натисніть Enter для нескінченного діапазону): "); | |
string upperLimitInput = Console.ReadLine(); | |
int upperLimit; |
NewerOlder