Example #1
0
 public T CreateInstance <T>(T trep)
     where T : IRepositoryDataAccount, IRepositoryDataAuthentication, new()
 {
     trep       = new T();
     _irepdacc  = (IRepositoryDataAccount)trep;
     _irepdauth = (IRepositoryDataAuthentication)trep;
     return(trep);
 }
Example #2
0
    public RepositoryAbstraction()
    {
        // _irepdacc = GenericFactory<RepositoryMySql, IRepositoryDataAccount>.CreateInstance();
        // _irepdauth = GenericFactory<RepositoryMySql, IRepositoryDataAuthentication>.CreateInstance();
        _irepdacc = GenericFactory <Repository, IRepositoryDataAccount> .CreateInstance();

        _irepdauth = GenericFactory <Repository, IRepositoryDataAuthentication> .CreateInstance();
    }
 public BusinessLayer(IRepositoryDataAuthentication idauth, IRepositoryDataAccount idacc)
 {
     idau = idauth;
     idac = idacc;
 }
Example #4
0
 public BusinessLayer(IRepositoryDataAuthentication idauth, IRepositoryDataAccount idacc)
 {
     idau = idauth;
     idac = idacc;
 }
Example #5
0
        public RepositoryAbstraction()
        {
            _iRepositoryDataAccount = GenericFactory <RepositorySQL, IRepositoryDataAccount> .CreateInstance();

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