示例#1
0
 public BusinessLayer()
 {
     repo        = new RepositoryAbstraction();
     idac        = (IRepositoryDataAccount)repo;
     authService = (IAuthenticationService)repo;
     state       = new SilverState(this);
 }
示例#2
0
 public T CreateInstance <T>(T trep)
     where T : IRepositoryDataAccount, IAuthenticationService, new()
 {
     trep       = new T();
     _irepdacc  = (IRepositoryDataAccount)trep;
     _irepdauth = (IAuthenticationService)trep;
     return(trep);
 }
示例#3
0
    public RepositoryAbstraction()
    {
        // _irepdacc = GenericFactory<RepositoryMySql, IRepositoryDataAccount>.CreateInstance();
        // _irepdauth = GenericFactory<RepositoryMySql, IRepositoryDataAuthentication>.CreateInstance();
        _irepdacc = GenericFactory <Repository, IRepositoryDataAccount> .CreateInstance();

        _irepdauth = GenericFactory <Repository, IRepositoryDataAuthentication> .CreateInstance();
    }
示例#4
0
    public RepositoryAbstraction()
    {
        _irepdacc = GenericFactory <Repository, IRepositoryDataAccount> .CreateInstance();

        _irepdauth = GenericFactory <Repository, IAuthenticationService> .CreateInstance();
    }
 public BusinessLayer(IRepositoryDataAuthentication idauth, IRepositoryDataAccount idacc)
 {
     idau = idauth;
     idac = idacc;
 }
示例#6
0
 public BusinessLayer(IRepositoryDataAuthentication idauth, IRepositoryDataAccount idacc)
 {
     idau = idauth;
     idac = idacc;
 }
示例#7
0
        public RepositoryAbstraction()
        {
            _iRepositoryDataAccount = GenericFactory <RepositorySQL, IRepositoryDataAccount> .CreateInstance();

            _iRepositoryDataAuthentication = GenericFactory <RepositorySQL, IRepositoryDataAuthentication> .CreateInstance();
        }
 public BusinessAbstraction(IRepositoryDataAuthentication idau, IRepositoryDataAccount idac)
 {
     _idac = idac;
     _idau = idau;
 }