Modules/Framework/Gardener.CodeGeneration/Services/CodeGenConfigService.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Furion.DatabaseAccessor;
using Furion.DependencyInjection;
using Gardener.Base;
using Gardener.CodeGeneration.Domains;
using Gardener.CodeGeneration.Dtos;
using Gardener.Common;
using Gardener.EntityFramwork;
using Gardener.Enums;
using Gardener.Sugar;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace Gardener.CodeGeneration.Services;
/// <summary>
/// 代码生成配置 - DB First
/// </summary>
[ApiDescriptionSettings(Groups = new[] { "SystemBaseServices" })] //, ForceWithRoutePrefix = true, KeepName = true, KeepVerb = true, LowercaseRoute = false, SplitCamelCase = false
public class CodeGenConfigService : ServiceBase<CodeGenConfig, CodeGenConfigDto, Guid>
, ICodeGenConfigService, ITransient
{
private readonly IRepository<CodeGenConfig> repository;
private readonly SqlSugarRepository<CodeGenConfig> codeGenConfigSugarRep;
private readonly IWebHostEnvironment env;
/// <summary>
///
/// </summary>
/// <param name="repository"></param>
/// <param name="codeGenConfigSugarRep"></param>
/// <param name="env"></param>
public CodeGenConfigService(
IRepository<CodeGenConfig> repository,
SqlSugarRepository<CodeGenConfig> codeGenConfigSugarRep,
IWebHostEnvironment env) : base(repository)
{
this.repository = repository;
this.codeGenConfigSugarRep = codeGenConfigSugarRep;
this.env = env;
}
/// <summary>
///
/// </summary>
/// <param name="dbColumnInfos"></param>
/// <param name="codeGen"></param>
/// <returns></returns>
后面还有 309 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
