backend/tools/cli.ps1

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

# 定义参数
Param(
    # 需要生成的表,不填则生成所有表
    [string[]] $Tables,
    # 数据库上下文名
    [string]$Context,
    # 数据库连接字符串名
    [string]$ConnectionName,
    # 要保存的目录
    [string]$OutputDir,
    # 数据库提供器
    [string]$DbProvider,
    # 入口项目
    [string]$EntryProject,
    # 实体项目
    [string]$CoreProject,
    # 数据库上下文定位器
    [string] $DbContextLocators,
    # 默认前缀
    [string]$Product
    # 是否数据库命名
    #[string]$UseDatabaseNames
)

$FurTools = "Fur Tools v1.0.0";

# 输出信息
$copyright = @"
// -----------------------------------------------------------------------------
//   ______            _______          _     
//  |  ____|          |__   __|        | |    
//  | |__ _   _ _ __     | | ___   ___ | |___ 
//  |  __| | | | '__|    | |/ _ \ / _ \| / __|
//  | |  | |_| | |       | | (_) | (_) | \__ \
//  |_|   \__,_|_|       |_|\___/ \___/|_|___/
//                                            
// -----------------------------------------------------------------------------
// Fur 是 .NET 5 平台下极易入门、极速开发的 Web 应用框架。
// Copyright © 2020 Fur, Baiqian Co.,Ltd.
//
// 框架名称:Fur
// 框架作者:百小僧
// 框架版本:1.0.0
// 源码地址:https://gitee.com/monksoul/Fur
// 开源协议:Apache-2.0(http://www.apache.org/licenses/LICENSE-2.0)
// -----------------------------------------------------------------------------
"@;

# 获取当前目录
$pwd = pwd;
$rootPath = $pwd.Path;

# 初始化默认值

if ($Product -eq $null -or $Product -eq ""){
    $Product = "Fur";
}

if ($EntryProject -eq $null -or $EntryProject -eq ""){
    $EntryProject = "$Product.Web.Entry";
后面还有 477 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。