{"id":16640112,"url":"https://github.com/2881099/freesql.adminlte","last_synced_at":"2025-04-04T14:05:42.072Z","repository":{"id":37692841,"uuid":"181616551","full_name":"2881099/FreeSql.AdminLTE","owner":"2881099","description":"这是一个 .NETCore MVC 中间件，基于 AdminLTE 前端框架动态产生 FreeSql 实体的增删查改界面。","archived":false,"fork":false,"pushed_at":"2024-01-14T19:26:51.000Z","size":20431,"stargazers_count":175,"open_issues_count":2,"forks_count":53,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-15T21:26:13.128Z","etag":null,"topics":["adminlte","codefirst","orm"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2881099.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-16T04:49:02.000Z","updated_at":"2024-04-23T08:15:36.000Z","dependencies_parsed_at":"2023-12-20T13:26:40.902Z","dependency_job_id":"5b7f93a8-c09e-4b62-b69e-c45a80350909","html_url":"https://github.com/2881099/FreeSql.AdminLTE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2881099%2FFreeSql.AdminLTE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2881099%2FFreeSql.AdminLTE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2881099%2FFreeSql.AdminLTE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2881099%2FFreeSql.AdminLTE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2881099","download_url":"https://codeload.github.com/2881099/FreeSql.AdminLTE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247188147,"owners_count":20898455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adminlte","codefirst","orm"],"created_at":"2024-10-12T07:07:53.997Z","updated_at":"2025-04-04T14:05:42.036Z","avatar_url":"https://github.com/2881099.png","language":"C#","readme":"这是 [FreeSql](https://github.com/2881099/FreeSql) 衍生出来的功能包，基于 AdminLTE 前端框架提高生产效率\n\nQQ群：4336577(已满)、8578575(在线)、52508226(在线)\n\n| 项目 | 版本 |\n| -- | -- |\n| FreeSql.AdminLTE | netstandard2.0、net45 |\n| FreeSql.AdminLTE.Tools | net6.0 |\n| FreeSql.AdminLTE.Preview | net6.0 |\n\n三个包产生的 AdminLTE 功能几乎一样，都是根据实体类、导航关系生成默认的繁琐的后台管理功能。\n\n生成条件：\n\n- 实体类的注释（请开启项目XML文档）；\n- 实体类的导航属性配置（可生成繁琐的常用后台管理功能）。\n\n# 1、FreeSql.AdminLTE.Preview\n\n.NETCore MVC 中间件，基于 AdminLTE 前端框架动态产生指定 FreeSql 实体的增删查改的【预览管理功能】。\n\n使用场景：开发环境的测试数据生产。\n\n\u003e dotnet add package FreeSql.AdminLTE.Preview\n\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n  services.AddSingleton\u003cIFreeSql\u003e(fsql);\n}\n\npublic void Configure(IApplicationBuilder app)\n{\n  app.UseFreeAdminLtePreview(\"/testadmin/\",\n    typeof(TestDemo01.Entitys.Song),\n    typeof(TestDemo01.Entitys.Tag));\n}\n```\n\n![image](https://user-images.githubusercontent.com/16286519/56229638-f3a79b80-60ac-11e9-8cf6-e58e95ab53c1.png)\n\n![image](https://user-images.githubusercontent.com/16286519/56298417-ad157800-6164-11e9-86c1-6270f3989487.png)\n\n# 2、FreeSql.AdminLTE\n\n根据 FreeSql 实体类配置、导航关系配置，快速生成基于 MVC + Razor + AdminLTE 的后台管理系统的增删查改代码【支持二次开发】。\n\n使用场景：asp.net/asp.netcore 后台管理系统快速生成，二次开发【自定义】。\n\n\u003e dotnet add package FreeSql.AdminLTE\n\n```csharp\nusing (var gen = new FreeSql.AdminLTE.Generator(new GeneratorOptions()))\n{\n  gen.Build(\"d:/test/\", new[] { typeof(TestDemo01.Entitys.Song) }, false);\n}\n```\n\n提醒：提醒：提醒：\n\n\u003e 生成后的 Controller、Razor 代码依赖 FreeSql.DbContext 库，请手工添加\n\n# 3、FreeSql.AdminLTE.Tools\n\n对 FreeSql.AdminLTE 功能的工具命令化封装，命令行快速生成代码。\n\n使用场景：asp.netcore 后台管理系统快速生成，二次开发。\n\n\u003e dotnet tool install -g FreeSql.AdminLTE.Tools\n\n--- \n\n进入后台项目（可以是空项目、或已存在的项目），执行以下命令\n\n\u003e FreeSql.AdminLTE.Tools -Find MyTest\\.Model\\..+\n\n| 命令行参数 | 说明 |\n| -- | -- |\n| -Find                | * 匹配实体类FullName的正则表达式                           |\n| -ControllerNameSpace | 控制器命名空间（默认：FreeSql.AdminLTE）                   |\n| -ControllerRouteBase | 控制器请求路径前辍（默认：/AdminLTE/）                     |\n| -ControllerBase      | 控制器基类（默认：Controller）                             |\n| -First               | 是否生成 ApiResult.cs、index.html、htm 静态资源（首次生成）|\n| -Output              | 输出路径（默认：当前目录）                                 |\n\n![image](https://user-images.githubusercontent.com/16286519/64080898-ca21a080-cd2b-11e9-92e0-fcda5058c5e7.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2881099%2Ffreesql.adminlte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2881099%2Ffreesql.adminlte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2881099%2Ffreesql.adminlte/lists"}