/// <summary> 获取数据库连接 </summary> /// <param name="connectionName"></param> /// <returns></returns> protected IDbConnection GetConnection(Enum connectionName) { return(_connProvider.Connection(connectionName)); }
/// <summary> 创建连接 </summary> /// <returns></returns> public IDbConnection CreateConnection() { return(string.IsNullOrWhiteSpace(_connectionString) ? _connProvider.Connection(_configName) : _connProvider.Connection(_connectionString, _providerName)); }