ZhytechClassLibrary.DynamicForm
1.1.5
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 ZhytechClassLibrary.DynamicForm --version 1.1.5
NuGet\Install-Package ZhytechClassLibrary.DynamicForm -Version 1.1.5
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="ZhytechClassLibrary.DynamicForm" Version="1.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZhytechClassLibrary.DynamicForm" Version="1.1.5" />
<PackageReference Include="ZhytechClassLibrary.DynamicForm" />
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 ZhytechClassLibrary.DynamicForm --version 1.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZhytechClassLibrary.DynamicForm, 1.1.5"
#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 ZhytechClassLibrary.DynamicForm@1.1.5
#: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=ZhytechClassLibrary.DynamicForm&version=1.1.5
#tool nuget:?package=ZhytechClassLibrary.DynamicForm&version=1.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1. 概述
ZhytechClassLibrary.DynamicForm 是一个动态表单处理类库,提供表单模板查询和保存功能。该库基于.Net Core开发,主要用于动态表单的生成和处理。
2. 核心功能
2.1 查询表单模板 通过GetFormTemplateByRecordID方法获取表单模板。 2.2 保存表单模板 通过SaveFormTemplate方法保存表单模板。
3. 主要类说明
3.1 DynamicFormService 主服务类
4. 使用示例
4.1 在setup.cs或Program.cs中添加引用
var connectionString = "server=127.0.0.1;database=DynamicForm;uid=admin;pwd=admin";
var redisConnectionString = "127.0.0.1:6379,password=ZhongYun`1q20230716,syncTimeout =20000,connectTimeout=3000,connectRetry=3,DefaultDatabase=0";
Services.AddDynamicFormDbConnection(connectionString, redisConnectionString);
services.AddDynamicFormDbConnection("SqlServer", connectionString, redisConnection);
// 支持MySql数据库
// services.AddDynamicFormDbConnection("MySql", connectionString, redisConnection);
4.2 在控制器中添加引用
// 获取表单模板
var data = await dynamicFormService.GetFormTemplateByRecordID(dynamicFormRecordID, null, null, null);
// 保存表单模板
await dynamicFormService.SaveFormTemplate(data);
5. 依赖项
EntityFrameworkCore (数据访问)
6. 注意事项
6.1 使用前需配置好数据库连接
6.2 表单模板的版本需与业务逻辑匹配
6.3 生产环境建议使用依赖注入管理服务生命周期
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.5)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.5)
- MySql.EntityFrameworkCore (>= 8.0.5)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.8.31)
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.10 | 97 | 8/27/2026 |
| 1.1.9 | 117 | 7/10/2026 |
| 1.1.8 | 107 | 6/29/2026 |
| 1.1.7 | 115 | 6/28/2026 |
| 1.1.6 | 107 | 6/23/2026 |
| 1.1.5 | 110 | 6/8/2026 |
| 1.1.4 | 106 | 6/2/2026 |
| 1.1.3 | 110 | 4/25/2026 |
| 1.1.2 | 111 | 3/12/2026 |
| 1.1.1 | 108 | 3/12/2026 |
| 1.1.0 | 110 | 3/10/2026 |
| 1.0.18 | 110 | 3/10/2026 |
| 1.0.17 | 119 | 1/29/2026 |
| 1.0.16 | 119 | 1/28/2026 |
| 1.0.15 | 118 | 1/27/2026 |
| 1.0.14 | 114 | 1/24/2026 |
| 1.0.13 | 112 | 1/24/2026 |
| 1.0.12 | 212 | 10/2/2025 |
| 1.0.11 | 206 | 9/24/2025 |
| 1.0.10 | 195 | 9/23/2025 |
Loading failed