This commit is contained in:
2020-10-14 17:25:05 -04:00
parent b37433e6de
commit 86d6fdb5dd
6 changed files with 30 additions and 4 deletions

View File

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace COA.EnterpriseServices.DataAccess
{

View File

@ -13,6 +13,7 @@ namespace COA.EnterpriseServices.DataAccess
c.Scan(s =>
{
s.AddAllTypesOf(typeof(IDataAccess<>));
s.AddAllTypesOf(typeof(DataAccessManager<>));
s.WithDefaultConventions();
s.AssembliesFromApplicationBaseDirectory();

View File

@ -13,8 +13,8 @@ namespace COA.EnterpriseServices.DataAccess.Helpers
static CreditorHelper()
{
creditorDataAccess = new DataAccessManager<Creditor>();
settlementAttemptDataAccess = new DataAccessManager<SettlementAttempt>();
creditorDataAccess = Dependencies.Container.GetInstance<DataAccessManager<Creditor>>();
settlementAttemptDataAccess = Dependencies.Container.GetInstance<DataAccessManager<SettlementAttempt>>();
}
public Creditor GetCreditor(int id)