From b0e07bbefbacfe3a011a4dc19218613a886bbfa5 Mon Sep 17 00:00:00 2001 From: ducksoop Date: Tue, 13 Feb 2024 09:57:44 -0600 Subject: [PATCH] chore(examples): removed the example project Removed the example project from the solution, testing it locally on a seperate solution now. --- QuickbaseNet.Examples/Program.cs | 57 ------------------- .../QuickbaseNet.Examples.csproj | 14 ----- QuickbaseNet.sln | 8 +-- 3 files changed, 1 insertion(+), 78 deletions(-) delete mode 100644 QuickbaseNet.Examples/Program.cs delete mode 100644 QuickbaseNet.Examples/QuickbaseNet.Examples.csproj diff --git a/QuickbaseNet.Examples/Program.cs b/QuickbaseNet.Examples/Program.cs deleted file mode 100644 index 5c61bc5..0000000 --- a/QuickbaseNet.Examples/Program.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Newtonsoft.Json; -using QuickbaseNet.Helpers; -using QuickbaseNet.Requests; -using QuickbaseNet.Services; - -namespace QuickbaseNet.Examples -{ - internal class Program - { - static async Task Main(string[] args) - { - var quickBaseClient = new QuickbaseClient("builderprogram-pcohen", "b4mtg6_p7vz_0_dcmcjr3bdtp4csdtuu6qx3tyzuc"); - - var insertCommand = new QuickbaseCommandBuilder() - .ForTable("bsfhutyzn") - .ReturnFields(1, 2, 3) - .AddNewRecord(record => record - .AddField("6", "Hired consulting firm to do market study.") - .AddField("7", 5000) - .AddField("9", "2023-01-01")) - .BuildInsertUpdateCommand(); - - var result = await quickBaseClient.InsertRecords(insertCommand); - - // var quickBaseClient = new QuickbaseClient("diamond", Environment.GetEnvironmentVariable("QB_USERTOKEN")); - // var query = new QuickbaseQueryBuilder() - // .From("bsfhutyzn") - // .Select(6, 7, 8, 9, 10, 11, 12, 13) - // .Build(); - // - // string jsonRequest = JsonConvert.SerializeObject(query); - // - // var result = await quickBaseClient.QueryRecords(query); - if (result.IsSuccess) - { - Console.WriteLine("Success!"); - Console.WriteLine(JsonConvert.SerializeObject(result.Value, Formatting.Indented)); - } - else if (result.IsFailure) - { - Console.WriteLine("Error!"); - Console.WriteLine(JsonConvert.SerializeObject(result.QuickbaseError, Formatting.Indented)); - } - - - - // InsertOrUpdateRecordRequest request = recordBuilder.Build(); - - // var commandBuilder = new QuickbaseCommandBuilder() - // .ForTable("bck7gp3q2") - // .WithDeletionCriteria("{6.EX.'hello'}"); - // - // DeleteRecordRequest deleteRequest = commandBuilder.BuildDeleteCommand(); - - } - } -} diff --git a/QuickbaseNet.Examples/QuickbaseNet.Examples.csproj b/QuickbaseNet.Examples/QuickbaseNet.Examples.csproj deleted file mode 100644 index 1c00052..0000000 --- a/QuickbaseNet.Examples/QuickbaseNet.Examples.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - diff --git a/QuickbaseNet.sln b/QuickbaseNet.sln index 456a5a9..91857e2 100644 --- a/QuickbaseNet.sln +++ b/QuickbaseNet.sln @@ -5,9 +5,7 @@ VisualStudioVersion = 17.8.34322.80 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuickbaseNet", "QuickbaseNet\QuickbaseNet.csproj", "{375B33E5-C837-4915-844C-52057055E84C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuickbaseNet.Examples", "QuickbaseNet.Examples\QuickbaseNet.Examples.csproj", "{F92A2FF7-450E-4672-8781-BC648ACE2ACF}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickbaseNet.UnitTests", "QuickbaseNet.UnitTests\QuickbaseNet.UnitTests.csproj", "{E2654CA5-971C-43D0-912E-D4445F1EB4B0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuickbaseNet.UnitTests", "QuickbaseNet.UnitTests\QuickbaseNet.UnitTests.csproj", "{E2654CA5-971C-43D0-912E-D4445F1EB4B0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -19,10 +17,6 @@ Global {375B33E5-C837-4915-844C-52057055E84C}.Debug|Any CPU.Build.0 = Debug|Any CPU {375B33E5-C837-4915-844C-52057055E84C}.Release|Any CPU.ActiveCfg = Release|Any CPU {375B33E5-C837-4915-844C-52057055E84C}.Release|Any CPU.Build.0 = Release|Any CPU - {F92A2FF7-450E-4672-8781-BC648ACE2ACF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F92A2FF7-450E-4672-8781-BC648ACE2ACF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F92A2FF7-450E-4672-8781-BC648ACE2ACF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F92A2FF7-450E-4672-8781-BC648ACE2ACF}.Release|Any CPU.Build.0 = Release|Any CPU {E2654CA5-971C-43D0-912E-D4445F1EB4B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E2654CA5-971C-43D0-912E-D4445F1EB4B0}.Debug|Any CPU.Build.0 = Debug|Any CPU {E2654CA5-971C-43D0-912E-D4445F1EB4B0}.Release|Any CPU.ActiveCfg = Release|Any CPU