public Logger(ISQLCommandMapping <LogHead, Guid> headCommand, ISQLCommandMapping <LogBody, Guid> bodyCommand) { ISQLCommandDataAccessConnection _Con = (ISQLCommandDataAccessConnection)DependencyManager.Instance.Resolver <ISQLCommandDataAccessConnection>(); _headCommand = headCommand; _bodyCommand = bodyCommand; _headCommand.SQLDataAccessConnection = _Con; _bodyCommand.SQLDataAccessConnection = _Con; }
public Repository(ISQLCommandMapping <tEntity, TPrimarykey> CommandMapping, ISQLDataQueryMapping <tEntity, TPrimarykey> QueryMapping, ISQLQuery SQLQuery) { _CommandMapping = CommandMapping; _QueryMapping = QueryMapping; _SQLQuery = SQLQuery; _CurrentUnitOfWork = DependencyManager.Instance.Resolver <ICurrentUnitOfWork>(); _CurrentUnitOfWork.CurrentUnitOfWork.SetRepository(this); }