From 86d6fdb5dd0802a8a38befb51752ce8a9c81f84d Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 14 Oct 2020 17:25:05 -0400 Subject: [PATCH] progress --- .../COA.EnterpriseServices.Creditor.csproj | 7 +++++++ COA.EnterpriseServices.Creditor/Class1.cs | 13 +++++++++++++ .../DataAccessManager.cs | 1 - COA.EnterpriseServices.DataAccess/Dependencies.cs | 1 + .../Helpers/CreditorHelper.cs | 4 ++-- COA.EnterpriseServices.sln | 8 +++++++- 6 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 COA.EnterpriseServices.Creditor/COA.EnterpriseServices.Creditor.csproj create mode 100644 COA.EnterpriseServices.Creditor/Class1.cs diff --git a/COA.EnterpriseServices.Creditor/COA.EnterpriseServices.Creditor.csproj b/COA.EnterpriseServices.Creditor/COA.EnterpriseServices.Creditor.csproj new file mode 100644 index 0000000..cb63190 --- /dev/null +++ b/COA.EnterpriseServices.Creditor/COA.EnterpriseServices.Creditor.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp3.1 + + + diff --git a/COA.EnterpriseServices.Creditor/Class1.cs b/COA.EnterpriseServices.Creditor/Class1.cs new file mode 100644 index 0000000..7699b01 --- /dev/null +++ b/COA.EnterpriseServices.Creditor/Class1.cs @@ -0,0 +1,13 @@ +using System; + +namespace COA.EnterpriseServices.Creditor +{ + public class CreditorController + { + } + + public class SettlementController + { + + } +} diff --git a/COA.EnterpriseServices.DataAccess/DataAccessManager.cs b/COA.EnterpriseServices.DataAccess/DataAccessManager.cs index cf45747..9887e71 100644 --- a/COA.EnterpriseServices.DataAccess/DataAccessManager.cs +++ b/COA.EnterpriseServices.DataAccess/DataAccessManager.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; namespace COA.EnterpriseServices.DataAccess { diff --git a/COA.EnterpriseServices.DataAccess/Dependencies.cs b/COA.EnterpriseServices.DataAccess/Dependencies.cs index 15ba280..683bae2 100644 --- a/COA.EnterpriseServices.DataAccess/Dependencies.cs +++ b/COA.EnterpriseServices.DataAccess/Dependencies.cs @@ -13,6 +13,7 @@ namespace COA.EnterpriseServices.DataAccess c.Scan(s => { s.AddAllTypesOf(typeof(IDataAccess<>)); + s.AddAllTypesOf(typeof(DataAccessManager<>)); s.WithDefaultConventions(); s.AssembliesFromApplicationBaseDirectory(); diff --git a/COA.EnterpriseServices.DataAccess/Helpers/CreditorHelper.cs b/COA.EnterpriseServices.DataAccess/Helpers/CreditorHelper.cs index ad70de3..1aebb9a 100644 --- a/COA.EnterpriseServices.DataAccess/Helpers/CreditorHelper.cs +++ b/COA.EnterpriseServices.DataAccess/Helpers/CreditorHelper.cs @@ -13,8 +13,8 @@ namespace COA.EnterpriseServices.DataAccess.Helpers static CreditorHelper() { - creditorDataAccess = new DataAccessManager(); - settlementAttemptDataAccess = new DataAccessManager(); + creditorDataAccess = Dependencies.Container.GetInstance>(); + settlementAttemptDataAccess = Dependencies.Container.GetInstance>(); } public Creditor GetCreditor(int id) diff --git a/COA.EnterpriseServices.sln b/COA.EnterpriseServices.sln index 369551f..039ea75 100644 --- a/COA.EnterpriseServices.sln +++ b/COA.EnterpriseServices.sln @@ -9,7 +9,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COA.EnterpriseServices.Data EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COA.EnterpriseServices.DataAccess.QuickBase", "COA.EnterpriseServices.DataAccess.QuickBase\COA.EnterpriseServices.DataAccess.QuickBase.csproj", "{263CA52C-C2B5-417E-910E-50CE16EE33CB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COA.EnterpriseServices.Sandbox", "COA.EnterpriseServices.Sandbox\COA.EnterpriseServices.Sandbox.csproj", "{61BE21F9-8C5B-4C99-885A-E0B1E5BDCA79}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COA.EnterpriseServices.Sandbox", "COA.EnterpriseServices.Sandbox\COA.EnterpriseServices.Sandbox.csproj", "{61BE21F9-8C5B-4C99-885A-E0B1E5BDCA79}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COA.EnterpriseServices.Creditor", "COA.EnterpriseServices.Creditor\COA.EnterpriseServices.Creditor.csproj", "{FD33DD45-C0B9-45EE-B4C9-43CF1E6AB383}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -33,6 +35,10 @@ Global {61BE21F9-8C5B-4C99-885A-E0B1E5BDCA79}.Debug|Any CPU.Build.0 = Debug|Any CPU {61BE21F9-8C5B-4C99-885A-E0B1E5BDCA79}.Release|Any CPU.ActiveCfg = Release|Any CPU {61BE21F9-8C5B-4C99-885A-E0B1E5BDCA79}.Release|Any CPU.Build.0 = Release|Any CPU + {FD33DD45-C0B9-45EE-B4C9-43CF1E6AB383}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD33DD45-C0B9-45EE-B4C9-43CF1E6AB383}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD33DD45-C0B9-45EE-B4C9-43CF1E6AB383}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD33DD45-C0B9-45EE-B4C9-43CF1E6AB383}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE