BeetleX.BNR 1.0.1

dotnet add package BeetleX.BNR --version 1.0.1
NuGet\Install-Package BeetleX.BNR -Version 1.0.1
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="BeetleX.BNR" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BeetleX.BNR --version 1.0.1
#r "nuget: BeetleX.BNR, 1.0.1"
#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 BeetleX.BNR as a Cake Addin
#addin nuget:?package=BeetleX.BNR&version=1.0.1

// Install BeetleX.BNR as a Cake Tool
#tool nuget:?package=BeetleX.BNR&version=1.0.1

添加数据自增序列表达式

    public class MysqlDBContext : DbContext, IDBSequenceData
    {
        public DbSet<SequenceData> SequenceData { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            var connectionString = "server=192.168.2.19;user=root;password=123456;database=baseinfo_test";
            var serverVersion = new MySqlServerVersion(new Version(8, 0, 16));
            optionsBuilder.UseMySql(connectionString, serverVersion);
        }
    }

   BNRFactory.Default.Register("mysql", new DBSequenceParameter<MysqlDBContext>());
   var number = await BNRFactory.Default.Create("[S:M-][CN:订单][CN:广州][mysql:[D:yyyy]/00000000]");
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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 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.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on BeetleX.BNR:

Repository Stars
beetlex-io/BeetleX-Samples
BeetleX micro services framework (tcp webapi websocket and xrpc) samples
Version Downloads Last updated
1.0.1 646 5/24/2022
1.0.0 490 5/20/2022