Apps72.Dev.Data.SqlServerClr 2.7.5

SqlDatabaseCommand - CLR

The SqlDatabaseCommand is a set of components helping C# developers to execute SQL Queries and to retrieve data from SQL Server. It is a light and pragmatic framework that contains only the essential classes needed to create SQL query strings, define parameters and transaction, and execute it to retrieve all data converted in typed objects.

     This package is dedicated to be included in SQL Server 2008 CLR procedure or triggers (see https://en.wikipedia.org/wiki/SQL_CLR)

Install-Package Apps72.Dev.Data.SqlServerClr -Version 2.7.5
dotnet add package Apps72.Dev.Data.SqlServerClr --version 2.7.5
<PackageReference Include="Apps72.Dev.Data.SqlServerClr" Version="2.7.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Apps72.Dev.Data.SqlServerClr --version 2.7.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This C# library simplify all SQL Queries to external databases, using the base class DbConnection and DotNetCore.
Many implementations are compiled for SQL Server, Oracle Server or SQLite are included.

    var cmd   = new DatabaseCommand(mySqlConnection);

    var all   = cmd.ExecuteTable<Employee>();
    var smith = cmd.ExecuteRow<dynamic>();
    int count = cmd.ExecuteScalar<int>();

    var emps  = cmd.Query(" SELECT * FROM EMP WHERE EMPNO > @ID ")
                   .AddParameter("ID", 10)
                   .ExecuteTable<Employee>();

First, you need to add the .NET Core NuGet packages : https://www.nuget.org/packages/Apps72.Dev.Data.Core
Many preconfigured packages are available for SQL Server, Oracle, SQLite or a generic .NET Core library: NuGet Packages.

Next, you need to create a SqlConnection or other database connection.
The SqlConnection will be not closed by this library
The ConnectionString will instanciated a temporary SqlConnection for this query and will be closed after using.

More on Apps72.Dev.Data Documenation.

This C# library simplify all SQL Queries to external databases, using the base class DbConnection and DotNetCore.
Many implementations are compiled for SQL Server, Oracle Server or SQLite are included.

    var cmd   = new DatabaseCommand(mySqlConnection);

    var all   = cmd.ExecuteTable<Employee>();
    var smith = cmd.ExecuteRow<dynamic>();
    int count = cmd.ExecuteScalar<int>();

    var emps  = cmd.Query(" SELECT * FROM EMP WHERE EMPNO > @ID ")
                   .AddParameter("ID", 10)
                   .ExecuteTable<Employee>();

First, you need to add the .NET Core NuGet packages : https://www.nuget.org/packages/Apps72.Dev.Data.Core
Many preconfigured packages are available for SQL Server, Oracle, SQLite or a generic .NET Core library: NuGet Packages.

Next, you need to create a SqlConnection or other database connection.
The SqlConnection will be not closed by this library
The ConnectionString will instanciated a temporary SqlConnection for this query and will be closed after using.

More on Apps72.Dev.Data Documenation.

Release Notes

https://github.com/Apps72/Dev.Data#ReleaseNotes

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
2.7.5 169 8/9/2018
2.7.3 149 7/20/2018
2.6.0 175 6/14/2018
2.5.0 237 2/11/2018
2.4.0 221 8/27/2017
2.3.1 234 7/4/2017
2.1.0 282 12/17/2016
2.0.0 260 10/10/2016
1.4.0 390 1/30/2016
1.3.0 426 1/4/2016
1.2.0 312 12/13/2015