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
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="usis.Data.LocalDb" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add usis.Data.LocalDb --version 1.1.0
#r "nuget: usis.Data.LocalDb, 1.1.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 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 implements IEquatable<InstanceInfo>
  • usis.Data.LocalDb.VersionInfo now implements IEquatable<VersionInfo>
  • Code cleanup
  • Sample code in documentation
  • Fix for issue "LOCALDB_ERROR_INSUFFICIENT_BUFFER".

Release v1.0 - Initial

This was the initial release.


Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.1.0 273 3/8/2023
1.0.0 1,725 6/5/2018

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.