FreeImpTool 1.2.2026.527

dotnet tool install --global FreeImpTool --version 1.2.2026.527
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local FreeImpTool --version 1.2.2026.527
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FreeImpTool&version=1.2.2026.527
                    
nuke :add-package FreeImpTool --version 1.2.2026.527
                    

FreeImpTool

一个 .NET CLI 工具,用于将 XML 模型定义转换为基于 FreeSql 的增删改查 API 控制器代码。

安装

dotnet tool install --global FreeImpTool

使用

在当前目录中放置 XML 模型文件(*.xml),然后运行:

FreeImpTool

工具会自动解析 XML 中的 Table 定义,并为每个表生成对应的控制器代码,包含以下接口:

  • 查询全部列表
  • 分页查询
  • 模糊搜索分页
  • 添加记录
  • 更新记录
  • 删除记录
  • 批量删除
  • 导出 CSV

命令行参数

参数 说明 示例
-NameSpace 指定生成代码的命名空间 -NameSpace MyProject.Controllers
-Output 指定输出目录 -Output ./Controllers

XML 示例

<?xml version="1.0" encoding="utf-8"?>
<Model NameSpace="MyProject" Output="./Generated">
  <Table Name="User" Description="用户">
    <Column Name="Id" DataType="Int32" PrimaryKey="True"/>
    <Column Name="Name" DataType="String" Fuzzy="True"/>
    <Column Name="Email" DataType="String"/>
  </Table>
</Model>

技术栈

许可证

MIT

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 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 is compatible.  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 is compatible.  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.

This package has no dependencies.

Version Downloads Last Updated
1.2.2026.527 98 5/27/2026
1.1.2026.527 99 5/27/2026
1.0.2026.527 93 5/27/2026