public QueryDaoBuilder Start()
        {
            switch (this.sqldbType)
            {
            case SqldbType.mysql:
            {
                var builder = new MySqlQueryDaoBuilder(this.connection);
                builder.Startup();
                this.daoBuilder = builder;
            }
            break;

            case SqldbType.sqlite:
            {
                var builder = new SqliteQueryDaoBuilder(this.connection);
                builder.Startup();
                this.daoBuilder = builder;
            }
            break;

            case SqldbType.sqlserver:
            {
                var builder = new SqlServiceQueryDaoBuilder(this.connection);
                builder.Startup();
                this.daoBuilder = builder;
            }
            break;
            }

            return(this);
        }
 public AnswersService(
     IDaoBuilder <IAnswersDao> answersDaoBuilder,
     IDaoBuilder <IEvaluationsDao> evaluationsDaoBuilder,
     IDaoBuilder <ITemplatesDao> templatesDaoBuilder)
 {
     this.answersDaoBuilder     = answersDaoBuilder;
     this.evaluationsDaoBuilder = evaluationsDaoBuilder;
     this.templatesDaoBuilder   = templatesDaoBuilder;
 }
 public MobileCodeQuery(QueryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public GroupRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public DepartmentResourceRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public MobileCodeRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public EmailCodeRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public ResourceRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
Exemple #9
0
 public EvaluationsService(IDaoBuilder <IEvaluationsDao> daoBuilder)
 {
     this.evaluationDaoBuilder = daoBuilder;
 }
 public EmployeeRepository(RepositoryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public TemplatesService(IDaoBuilder <ITemplatesDao> daoBuilder)
 {
     this.templateDaoBuilder = daoBuilder;
 }
 public EmailCodeQuery(QueryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }
 public PermissionQuery(QueryDaoBuilder daoBuilder)
 {
     this.daoBuilder = daoBuilder;
 }