SunnyUI.SqlSugarCore
5.1.3.45
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SunnyUI.SqlSugarCore --version 5.1.3.45
NuGet\Install-Package SunnyUI.SqlSugarCore -Version 5.1.3.45
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.SqlSugarCore" Version="5.1.3.45" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SunnyUI.SqlSugarCore --version 5.1.3.45
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SunnyUI.SqlSugarCore, 5.1.3.45"
#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 SunnyUI.SqlSugarCore as a Cake Addin #addin nuget:?package=SunnyUI.SqlSugarCore&version=5.1.3.45 // Install SunnyUI.SqlSugarCore as a Cake Tool #tool nuget:?package=SunnyUI.SqlSugarCore&version=5.1.3.45
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
static void Main(string[] args)
{
//创建连接
DAL.InitSqlite("Test.db");
//显示日志
DAL.WriteLogToConsole = true;
//判断连接状态
Console.WriteLine("Connection state: " + DAL.Connected);
if (!DAL.Connected)
{
//创建数据库
DAL.CreateDatabase();
}
Test();
Console.WriteLine("按任意键退出。");
Console.ReadKey();
}
private static async void Test()
{
//更新连接状态(InitMySql 和 CreateDatabase 会自动调用)
Console.WriteLine("Connection state: " + DAL.Connected);
if (DAL.Connected)
{
//创建数据表
DAL.CreateTable<NewTable>();
//生成数据表实体类
DAL.CreateClassFile("C:\\", "DBAuth");
//调用 DAL.Client(SqlSugarClient)处理数据
DAL.Client.Queryable<NewTable>().ToList();
//Console.Clear();
Console.WriteLine(DAL.DeleteAll<NewTable>());
//根据主键获取对象
NewTable test = DAL.Queryable<NewTable>(2);
if (test == null)
{
test = new NewTable();
}
var t = await test.InsertAsync();
Console.WriteLine(DAL.DeleteAll<NewTable>());
test.fvcName = "ddddd";
Console.WriteLine(test.Upsert());
var list = DAL.GetSimpleClient<NewTable>().GetList();
Console.WriteLine(list.Count);
Console.WriteLine(DAL.Count<NewTable>());
//根据主键删除对象
DAL.Deleteable<NewTable>(2);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- RazorEngine.NetCore (>= 3.1.0)
- SqlSugarCore (>= 5.1.3.45)
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 | 143 | 5/3/2024 |
5.1.4.128 | 384 | 12/19/2023 |
5.1.4.124 | 433 | 11/26/2023 |
5.1.4.112 | 467 | 10/29/2023 |
5.1.4.105 | 529 | 9/9/2023 |
5.1.4.100 | 530 | 8/18/2023 |
5.1.4.73 | 642 | 5/17/2023 |
5.1.4.66 | 661 | 4/8/2023 |
5.1.4.58 | 742 | 3/11/2023 |
5.1.3.52 | 726 | 2/24/2023 |
5.1.3.45 | 762 | 1/13/2023 |
5.1.3.43 | 744 | 1/8/2023 |