/// <summary> /// 判断是否是 Firebird 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsFirebird() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Firebird)); }
/// <summary> /// 判断是否是 Dm 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsDm() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Dm)); }
/// <summary> /// 判断是否是 PostgreSQL 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsNpgsql() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Npgsql)); }
/// <summary> /// 判断是否是 Oracle 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsOracle() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Oracle)); }
/// <summary> /// 判断是否是 MySql 数据库 官方包(更新不及时,只支持 8.0.23+ 版本, 所以单独弄一个分类) /// </summary> /// <returns>bool</returns> public virtual bool IsMySqlOfficial() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.MySqlOfficial)); }
/// <summary> /// 判断是否是 内存中 数据库 /// </summary> /// <returns>bool</returns> public virtual bool InMemoryDatabase() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.InMemoryDatabase)); }
/// <summary> /// 判断是否是 Cosmos 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsCosmos() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Cosmos)); }
/// <summary> /// 判断是否是 Sqlite 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsSqlite() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.Sqlite)); }
/// <summary> /// 判断是否是 SqlServer 数据库 /// </summary> /// <returns>bool</returns> public virtual bool IsSqlServer() { return(DbProvider.IsDatabaseFor(ProviderName, DbProvider.SqlServer)); }