SunnyUI.SqlSugar 5.0.5.8

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package SunnyUI.SqlSugar --version 5.0.5.8
                    
NuGet\Install-Package SunnyUI.SqlSugar -Version 5.0.5.8
                    
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="SunnyUI.SqlSugar" Version="5.0.5.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SunnyUI.SqlSugar" Version="5.0.5.8" />
                    
Directory.Packages.props
<PackageReference Include="SunnyUI.SqlSugar" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SunnyUI.SqlSugar --version 5.0.5.8
                    
#r "nuget: SunnyUI.SqlSugar, 5.0.5.8"
                    
#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.
#:package SunnyUI.SqlSugar@5.0.5.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SunnyUI.SqlSugar&version=5.0.5.8
                    
Install as a Cake Addin
#tool nuget:?package=SunnyUI.SqlSugar&version=5.0.5.8
                    
Install as a Cake Tool
namespace Sunny.SqlSugar.Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            //创建连接
            DAL.InitMySql("DBAuth", "123456");

            //判断连接状态
            Console.WriteLine("Connection state: " + DAL.Connected);
            if (!DAL.Connected)
            {
                //创建数据库
                DAL.CreateDatabase();
            }

            //更新连接状态(InitMySql 和 CreateDatabase 会自动调用)
            DAL.InitConnectionState();
            Console.WriteLine("Connection state: " + DAL.Connected);

            if (DAL.Connected)
            {
                //创建数据表
                DAL.CreateTable(typeof(ttest));

                //生成数据表实体类
                DAL.CreateClassFile("C:\\", "DBAuth");

                //调用 DAL.Client(SqlSugarClient)处理数据
                DAL.Client.Queryable<ttest>().ToList();
            }

            Console.WriteLine("按任意键退出。");
            Console.ReadKey();
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.1.4.154 451 5/3/2024
5.1.4.128 287 12/19/2023
5.1.4.124 264 11/26/2023
5.1.4.112 264 10/29/2023
5.1.4.105 365 9/9/2023
5.1.4.100 342 8/18/2023
5.1.4.73 506 5/17/2023
5.1.4.66 497 4/8/2023
5.1.4.58 476 3/11/2023
5.1.3.52 486 2/24/2023
5.1.3.45 519 1/13/2023
5.1.3.43 549 1/8/2023
5.1.3.41 512 12/21/2022
5.1.3.35 519 11/30/2022
5.1.3.34 518 11/22/2022
5.1.3.32 577 11/19/2022
5.0.9.1 801 6/28/2022
5.0.6.4 785 4/7/2022
5.0.6.1 667 3/26/2022
5.0.5.9 668 3/11/2022
5.0.5.8 667 3/10/2022
5.0.5.5 677 3/8/2022