CA.Blocks.SQLServerDataAccess
3.4.160
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package CA.Blocks.SQLServerDataAccess --version 3.4.160
NuGet\Install-Package CA.Blocks.SQLServerDataAccess -Version 3.4.160
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="CA.Blocks.SQLServerDataAccess" Version="3.4.160" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CA.Blocks.SQLServerDataAccess --version 3.4.160
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CA.Blocks.SQLServerDataAccess, 3.4.160"
#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 CA.Blocks.SQLServerDataAccess as a Cake Addin #addin nuget:?package=CA.Blocks.SQLServerDataAccess&version=3.4.160 // Install CA.Blocks.SQLServerDataAccess as a Cake Tool #tool nuget:?package=CA.Blocks.SQLServerDataAccess&version=3.4.160
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This Package is a extension to the DataAccess Blocks targeting the Sqllite provider
Quick example
poco object
public class ExampleSysObject
{
public int Id { get; set; }
public string Name { get; set; }
public string XType { get; set; }
public DateTime CreateDate { get; set; }
}
The Data access class
public class YourDataAccessClass : SqlServerDataAccess
{
public YourDataAccessClass() :
base( new SimpleConnectionStringDataAccessConfig("Server=(local);Database=tempdb;Integrated Security = SSPI; TrustServerCertificate=True"))
{
}
internal string ReadSysObjectsOfTypeSql => @"
SELECT TOP 10 id as Id, name as Name, xtype as XType, crdate as CreateDate
FROM sysobjects
WHERE xtype = @xtype";
public IList<ExampleSysObject> ReadSysObjectsOfType(string xtype)
{
var cmd = CreateTextCommand(ReadSysObjectsOfTypeSql)
.WithParameter(xtype.ToSqlParameter("@xtype"));
return Execute(cmd).ToListOf<ExampleSysObject>();
}
public async Task<IList<ExampleSysObject>> ReadSysObjectsOfTypeAsync(string xtype)
{
var cmd = CreateTextCommand(ReadSysObjectsOfTypeSql)
.WithParameter(xtype.ToSqlParameter("@xtype"));
return await ExecuteAsync(cmd).ToListOf<ExampleSysObject>();
}
}
Calling the data access class
var instance = new YourDataAccessClass();
var results = instance.ReadSysObjectsOfType("U");
foreach (var o in results)
{
Console.WriteLine($"{o.Id},{o.Name},{o.Type},{o.CreateDate}");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- CA.Blocks.DataAccess (>= 3.4.160)
- Microsoft.Data.SqlClient (>= 5.2.2)
-
net6.0
- CA.Blocks.DataAccess (>= 3.4.160)
- Microsoft.Data.SqlClient (>= 5.2.2)
-
net8.0
- CA.Blocks.DataAccess (>= 3.4.160)
- Microsoft.Data.SqlClient (>= 5.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.4.160 | 105 | 11/17/2024 |
3.4.159-prerelease | 69 | 10/24/2024 |
3.4.157 | 961 | 8/8/2024 |
3.4.156-prerelease | 69 | 8/4/2024 |
3.4.154-prerelease | 65 | 8/4/2024 |
3.4.152-prerelease | 73 | 8/4/2024 |
3.4.149-prerelease | 86 | 7/14/2024 |
3.4.147 | 115 | 6/22/2024 |
3.4.145-prerelease | 94 | 5/27/2024 |
3.3.146 | 105 | 6/22/2024 |
3.3.143-prerelease | 107 | 5/25/2024 |
3.3.138-prerelease | 103 | 3/16/2024 |
3.3.136 | 1,171 | 2/24/2024 |
3.3.135-prerelease | 101 | 2/24/2024 |
3.3.133-prerelease | 102 | 2/24/2024 |
3.2.129 | 291 | 1/13/2024 |
3.2.128-prerelease | 92 | 1/13/2024 |
3.2.127-prerelease | 172 | 11/26/2023 |
3.2.126-prerelease | 101 | 11/18/2023 |
3.2.125-prerelease | 103 | 11/18/2023 |
3.1.124 | 214 | 11/17/2023 |
3.1.123-prerelease | 105 | 11/17/2023 |
3.1.122 | 892 | 8/29/2023 |
3.1.121-prerelease | 127 | 8/29/2023 |
3.1.120 | 224 | 8/14/2023 |
3.1.119-prerelease | 124 | 8/14/2023 |
3.1.118 | 157 | 7/30/2023 |
3.1.117-prerelease | 135 | 7/24/2023 |
3.1.116-prerelease | 150 | 7/24/2023 |
3.1.115 | 175 | 6/26/2023 |
3.1.114-prerelease | 125 | 6/11/2023 |
3.1.110 | 806 | 3/31/2023 |
3.1.109-prerelease | 144 | 3/31/2023 |
3.1.108-prerelease | 127 | 3/31/2023 |
3.1.107 | 235 | 3/28/2023 |
3.1.106-prerelease | 138 | 3/28/2023 |
3.1.104 | 388 | 1/4/2023 |
3.1.103-prerelease | 161 | 1/4/2023 |
3.1.102-prerelease | 145 | 12/10/2022 |
3.1.101 | 1,861 | 11/21/2022 |
3.1.100-prerelease | 162 | 11/13/2022 |
3.1.99-prerelease | 151 | 11/5/2022 |
3.1.98-prerelease | 658 | 11/2/2022 |
3.1.97-prerelease | 146 | 11/2/2022 |
3.1.95-prerelease | 148 | 11/1/2022 |
3.1.83 | 634 | 10/22/2022 |
3.0.73 | 447 | 10/10/2022 |
3.0.71 | 440 | 10/10/2022 |
3.0.69 | 550 | 9/14/2022 |
3.0.59 | 1,463 | 8/18/2022 |
3.0.56 | 486 | 8/10/2022 |
3.0.49 | 780 | 6/27/2022 |
3.0.48 | 559 | 6/14/2022 |
3.0.44 | 676 | 3/19/2022 |
3.0.38 | 543 | 3/4/2022 |
3.0.37 | 919 | 11/21/2021 |
3.0.35 | 493 | 11/3/2021 |
3.0.34 | 419 | 10/24/2021 |
2.2.26 | 445 | 2/20/2021 |
2.2.21 | 471 | 12/14/2020 |
2.2.19-CI-20200530-023939 | 451 | 5/30/2020 |
2.1.18-CI-20200514-060834 | 387 | 5/14/2020 |
2.1.16-CI-20200514-034352 | 380 | 5/14/2020 |
2.1.14-CI-20200131-034815 | 938 | 1/31/2020 |