public RepoTest() { string dbStr = "sqlite"; switch (dbStr) { case "sqlite": this.helper = new BaseORMHelper(); this.repoString = new SqliteRepositoryString(helper); this.repo = new BaseRepository(repoString); this.repo.SetConnection(new ConnectionFactory().Connection("sqlite")); break; case "mysql": this.helper = new BaseORMHelper(); this.repoString = new MysqlRepositoryString(helper); this.repo = new BaseRepository(repoString); this.repo.SetConnection(new ConnectionFactory().Connection("mysql")); break; } }
public SqliteRepositoryString(IORMHelper helper) : base(helper, ":", "DATETIME('NOW','LOCALTIME')") { this.helper = helper; }
public MysqlRepositoryString(IORMHelper helper) : base(helper, "@", "NOW()") { this.helper = helper; }
public OracleRepositoryString(IORMHelper helper) : base(helper, ":", "SYSDATE") { }
public BaseRepositoryString(IORMHelper helper, string ParamMark, string DBNowDatefunction) { this.helper = helper; this.ParamMark = ParamMark; this.DBNowDatefunction = DBNowDatefunction; }
public BaseRepositoryString(IORMHelper helper) { this.helper = helper; }