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.Data.SqlClient; | |
namespace _42_ConsumeData | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string connectionString = "Server=LAPTOP-201QPF8A\\SQLEXPRESS;Database=EcommerceDb;Trusted_Connection=true"; |
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.Data.SqlClient; | |
namespace _42_ConsumeData | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string connectionString = "Server=LAPTOP-201QPF8A\\SQLEXPRESS;Database=EcommerceDb;Trusted_Connection=true"; |
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
CREATE DATABASE EcommerceDb | |
USE EcommerceDb | |
GO | |
CREATE TABLE Product ( | |
Id INT IDENTITY(1,1) PRIMARY KEY , | |
Description VARCHAR(250), | |
Quantity INT, | |
Price NUMERIC(5,2) |
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.Net.Http; | |
using System.Threading.Tasks; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ |
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.Net; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.IO.Compression; | |
using System.Linq; | |
using System.Text; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ |
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; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myNewFile = @"../../Directory/file_6.txt"; |
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; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myFile = @"../../Directory/file_5.txt"; |
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; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myDirectory = @"../../Directory"; |
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; | |
namespace ImplementDataAccess._41_PerformIoOperations | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myDirectoryName = "directory"; |