usis.Data.LocalDb
1.1.0
dotnet add package usis.Data.LocalDb --version 1.1.0
NuGet\Install-Package usis.Data.LocalDb -Version 1.1.0
<PackageReference Include="usis.Data.LocalDb" Version="1.1.0" />
paket add usis.Data.LocalDb --version 1.1.0
#r "nuget: usis.Data.LocalDb, 1.1.0"
// Install usis.Data.LocalDb as a Cake Addin #addin nuget:?package=usis.Data.LocalDb&version=1.1.0 // Install usis.Data.LocalDb as a Cake Tool #tool nuget:?package=usis.Data.LocalDb&version=1.1.0
Welcome to the usis LocalDB Class Library
The usis LocalDB Class Library provides a .NET wrapper for the SQL Server Express LocalDB Instance APIs.
Namespace
All types of the class library are contained in the usis.Data.LocalDb namespace.
NuGet
usis.Data.LocalDb is available as NuGet Package: https://www.nuget.org/packages/usis.Data.LocalDb/
Documentation
This documentation is available online at https://help.usis-software.com/LocalDB/ and can be download as Compiled HTML Help (.CHM) file.
Sample
The following sample lists all LocalDB versions available on the computer:
using System;
namespace usis.Data.LocalDb.Samples
{
public static class Operations
{
public static void ListVersions()
{
using (var manager = Manager.Create())
{
foreach (var version in manager.EnumerateVersions())
{
string format;
switch (version.Version.Major)
{
case 11:
format = "Microsoft SQL Server 2012 ({0})";
break;
case 12:
format = "Microsoft SQL Server 2014 ({0})";
break;
case 13:
format = "Microsoft SQL Server 2016 ({0})";
break;
case 14:
format = "Microsoft SQL Server 2017 ({0})";
break;
default:
format = "{0}";
break;
}
Console.WriteLine(format, version.Name);
}
}
}
}
}
Release Notes
Release v1.1
usis.Data.LocalDb.InstanceInfo
now implementsIEquatable<InstanceInfo>
usis.Data.LocalDb.VersionInfo
now implementsIEquatable<VersionInfo>
- Code cleanup
- Sample code in documentation
- Fix for issue "LOCALDB_ERROR_INSUFFICIENT_BUFFER".
Release v1.0 - Initial
This was the initial release.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Next Release: usis.Data.LocalDb.InstanceInfo now implements IEquatable<InstanceInfo>; usis.Data.LocalDb.VersionInfo now implements IEquatable<VersionInfo>; Code cleanup and simplification; Sample code in documentation.