Lamar项目使用教程
2024-09-22 02:51:50作者:滑思眉Philip
lamar
Fast Inversion of Control Tool and Successor to StructureMap
1、项目目录结构及介绍
Lamar项目是一个基于.NET框架的开源Web API框架,旨在提供高性能、可扩展的API服务。以下是Lamar项目的目录结构及介绍:
├── src
│ ├── Lamar // 主项目文件夹
│ │ ├── Controllers // 控制器文件夹
│ │ ├── Models // 模型文件夹
│ │ ├── Services // 服务文件夹
│ │ └── Filters // 过滤器文件夹
│ ├── Program.cs // 启动文件
│ └── appsettings.json // 配置文件
└── test // 测试文件夹
1.1 主项目文件夹
Lamar
文件夹是项目的核心部分,包含了控制器、模型、服务、过滤器等组件。
- Controllers:控制器文件夹包含API接口的实现。
- Models:模型文件夹包含数据模型类。
- Services:服务文件夹包含业务逻辑实现。
- Filters:过滤器文件夹包含中间件过滤器。
1.2 启动文件
Program.cs
文件是项目的启动入口,负责配置服务和启动应用程序。
1.3 配置文件
appsettings.json
文件是项目的配置文件,包含了应用程序的各种配置信息,如数据库连接字符串、日志级别等。
2、项目的启动文件介绍
以下是Program.cs
启动文件的简单介绍:
using Lamar;
using Lamar.Extensions;
using Lamar.Hosting;
using Lamar.ReSharper;
using Lamar.Server;
using Lamar.Testing;
using Lamar.Testing.AspNetCore;
using Lamar.Testing.AspNetCore.Mvc;
using Lamar.Testing.AspNetCore.Mvc.Testing;
using Lamar.Testing.AspNetCore.Mvc.Testing.Server;
using Lamar.Testing.AspNetCore.TestHost;
using Lamar.Testing.AspNetCore.TestHost.TestHost;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Extensions;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.IntegrationTests.Builders;
using Lamar.Testing.AspNetCore.TestHost.TestHost.Server.Int
lamar
Fast Inversion of Control Tool and Successor to StructureMap
热门项目推荐
相关项目推荐
- CangjieCommunity为仓颉编程语言开发者打造活跃、开放、高质量的社区环境Markdown6720
- redis-sdk仓颉语言实现的Redis客户端SDK。已适配仓颉0.53.4 Beta版本。接口设计兼容jedis接口语义,支持RESP2和RESP3协议,支持发布订阅模式,支持哨兵模式和集群模式。Cangjie32326
- Yi-CoderYi Coder 编程模型,小而强大的编程助手315
- qwerty-learner为键盘工作者设计的单词记忆与英语肌肉记忆锻炼软件 / Words learning and English muscle memory training software designed for keyboard workersTypeScript15.77 K1.48 K
- advanced-javaAdvanced-Java是一个Java进阶教程,适合用于学习Java高级特性和编程技巧。特点:内容深入、实例丰富、适合进阶学习。JavaScript76.11 K19.07 K
- taro开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/TypeScript35.52 K4.79 K
- CommunityCangjie-TPC(Third Party Components)仓颉编程语言三方库社区资源汇总252
- Wwindows暂无简介Shell16.14 K1.35 K
- byzer-langByzer(以前的 MLSQL):一种用于数据管道、分析和人工智能的低代码开源编程语言。Scala1.88 K551
- AanacondaAnaconda turns your Sublime Text 3 in a full featured Python development IDE including autocompletion, code linting, IDE features, autopep8 formating, McCabe complexity checker Vagrant and Docker support for Sublime Text 3 using Jedi, PyFlakes, pep8, MyPy, PyLint, pep257 and McCabe that will never freeze your Sublime Text 3Python2.22 K263
项目优选
收起
CangjieCommunity
为仓颉编程语言开发者打造活跃、开放、高质量的社区环境
Markdown
672
0
openHiTLS
旨在打造算法先进、性能卓越、高效敏捷、安全可靠的密码套件,通过轻量级、可剪裁的软件技术架构满足各行业不同场景的多样化要求,让密码技术应用更简单,同时探索后量子等先进算法创新实践,构建密码前沿技术底座!
C
12
8
advanced-java
Advanced-Java是一个Java进阶教程,适合用于学习Java高级特性和编程技巧。特点:内容深入、实例丰富、适合进阶学习。
JavaScript
75.83 K
19.04 K
redis-sdk
仓颉语言实现的Redis客户端SDK。已适配仓颉0.53.4 Beta版本。接口设计兼容jedis接口语义,支持RESP2和RESP3协议,支持发布订阅模式,支持哨兵模式和集群模式。
Cangjie
323
26
RuoYi-Vue
🎉 基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统,同时提供了 Vue3 的版本
Java
136
18
Yi-Coder
Yi Coder 编程模型,小而强大的编程助手
HTML
31
5
easy-es
Elasticsearch
国内Top1 elasticsearch搜索引擎框架es ORM框架,索引全自动智能托管,如丝般顺滑,与Mybatis-plus一致的API,屏蔽语言差异,开发者只需要会MySQL语法即可完成对Es的相关操作,零额外学习成本.底层采用RestHighLevelClient,兼具低码,易用,易拓展等特性,支持es独有的高亮,权重,分词,Geo,嵌套,父子类型等功能...
Java
1.42 K
231
xzs
在线考试系统、考试系统、在线教育考试系统、在线教育、跨平台考试、考试、智能考试、试题、错误试题、考试题目、试题组卷等
HTML
3
1
langgpt
Ai 结构化提示词,人人都能写出高质量提示词,GitHub 开源社区全球趋势热榜前十项目,已被百度、智谱、字节、华为等国内主流大模型智能体平台使用,内容来自国内最具影响力的高质量提示词工程师学习交流社群——LangGPT。开源知识库:https://langgptai.feishu.cn/wiki/RXdbwRyASiShtDky381ciwFEnpe
Jupyter Notebook
16
2