Flowsy.Db.Abstractions 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Flowsy.Db.Abstractions --version 3.0.0                
NuGet\Install-Package Flowsy.Db.Abstractions -Version 3.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Flowsy.Db.Abstractions" Version="3.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Flowsy.Db.Abstractions --version 3.0.0                
#r "nuget: Flowsy.Db.Abstractions, 3.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Flowsy.Db.Abstractions as a Cake Addin
#addin nuget:?package=Flowsy.Db.Abstractions&version=3.0.0

// Install Flowsy.Db.Abstractions as a Cake Tool
#tool nuget:?package=Flowsy.Db.Abstractions&version=3.0.0                

Flowsy Db Abstractions

This package provides basic constructs for working with databases.

DbProvider

The DbProvider enumeration contains values that specify the type of database provider to use. The following values are available:

  • PostgreSql
  • MySql
  • SqlServer
  • Oracle
  • Sqlite

DbProviderExtensions

The DbProviderExtensions class provides extension methods for the DbProvider enumeration. It has the following methods:

  • GetInvariantName(): Returns the invariant name of the database provider.
  • GetDefaultPort(): Returns the default port number for the database provider.
  • GetDefaultDatabaseName(): Returns the default database name for the database provider.
  • FormatCasting: Formats a string that casts a value to a specific type in the database provider's SQL dialect.
  • SupportsEnums: Returns a boolean value that indicates whether the database provider supports enums.
  • SupportsRoutineType: Returns a boolean value that indicates whether the database provider supports the specified routine type.
  • RoutineCanReturnTable: Returns a boolean value that indicates whether the database provider supports routines that return tables.
  • SupportsNamedParameters: Returns a boolean value that indicates whether the database provider supports named parameters.
  • GetParameterPrefixForStatement: Returns the parameter prefix used by the database provider when building a statement.
  • BuildStatement: Builds a SQL statement using the specified parameters.

DbHost

The DbHost class holds information about the host of a database. It has the following properties:

  • Provider: A value from the DbProvider enumeration that specifies the type of database provider to use.
  • Address: A string that contains the host name or IP address of the database server.
  • Port: An integer that contains the port number of the database server.

DbCredentials

The DbCredentials class holds information about the credentials used to connect to a database. It has the following properties:

  • Username: A string that contains the username used to connect to the database.
  • Password: A string that contains the password used to connect to the database.

DbConnectionOptions

The DbConnectionOptions class is used to configure a connection to a database. It has the following properties and methods:

  • Provider: A value from the DbProvider enumeration that specifies the type of database provider to use.
  • ConnectionString: A string that contains the connection string to the database.
  • DatabaseName: A string that contains the name of the database to connect to.
  • GetConnection(): Returns a IDbConnection to be used to interact with the database.

DbRoutineDescriptor

The DbRoutineDescriptor class holds information about a database routine (e.g., stored procedure, function). It has the following properties:

  • SchemaName: A string that contains the name of the schema that contains the routine.
  • RoutineName: A string that contains the name of the routine.
  • FullName: A string that contains the fully qualified name of the routine (i.e., SchemaName.RoutineName).
  • Type: A value from the DbRoutineType enumeration that specifies the type of the routine (e.g., stored procedure, function).
  • Parameters: A list of DbParameterDescriptor objects that describe the parameters of the routine.

DbParameterDescriptor

The DbParameterDescriptor class holds information about a database parameter. It has the following properties:

  • Name: A string that contains the name of the parameter.
  • RuntimeType: A Type object that represents the runtime type of the parameter.
  • DatabaseType: A value from the DbType enumeration that specifies the database type of the parameter.
  • CustomType: A string that contains the custom type of the parameter (e.g., MY_ENUM).
  • Direction: A value from the ParameterDirection enumeration that specifies the direction of the parameter (e.g., input, output).
  • Size: An integer that contains the size of the parameter.
  • Value: An object that contains the value of the parameter.
  • ValueExpression: A value from the DbValueExpression enumeration that specifies how the value of the parameter should be interpreted.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Flowsy.Db.Abstractions:

Package Downloads
Flowsy.Db.Sql

Components for managing connections for SQL databases and perform related operations through database transactions.

Flowsy.Db.Agent

Provides functionality to perform administrative tasks on a database like creating databases, running migrations, importing and exporting data, etc.

Flowsy.Db.Conventions

Provides wrapper extensions for Dapper to set naming and formatting conventions for database objects like tables, columns, routines and parameters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.1 213 10/28/2024
3.1.0 91 10/28/2024
3.0.0 90 10/28/2024
2.2.1 101 10/28/2024
2.2.0 72 10/28/2024
2.1.0 78 10/26/2024
2.0.1 76 10/26/2024
2.0.0 97 10/26/2024
1.1.0 296 2/9/2024
1.0.0 194 2/3/2024
0.2.0 749 11/26/2023
0.1.1 228 10/24/2023
0.1.0 383 10/24/2023