SummerBoot
Combining the advanced concepts of SpringBoot with the simplicity and elegance of C#, declarative programming focuses on "what to do" rather than "how to do it", and writes code at a higher level.将SpringBoot的先进理念与C#的简洁优雅合二为一,声明式编程,专注于”做什么”而不是”如何去做”,在更高层面写代码。SummerBoot,致力于打造一个易上手,好维护的人性化框架,让大家早点下班去做自己喜欢的事。
Install / Use
/learn @TripleView/SummerBootREADME
Thanks for the ide license provided by jetbrain
<a href="https://jb.gg/OpenSourceSupport"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png?_ga=2.140768178.1037783001.1644161957-503565267.1643800664&_gl=1*1rs8z57*_ga*NTAzNTY1MjY3LjE2NDM4MDA2NjQ.*_ga_V0XZL7QHEB*MTY0NDE2MTk1Ny4zLjEuMTY0NDE2NTE2Mi4w" width = "200" height = "200" alt="" align=center /></a>
SummerBoot (中文名:夏日启动)
In order to let everyone better understand the use of summerBoot , I created a sample project- SummerBootAdmin , a general back-end management framework based on the separation of front-end and back-end, you can check the code of this project to better understand how to use summerBoot .
Core idea
Combine the advanced concepts of SpringBoot with the simplicity and elegance of C#, declarative programming, focus on"what to do"rather than"how to do it", and write code at a higher level.SummerBoot is committed to creating an easy-to-use and easy-to-maintain humanized framework, so that everyone can get off work early to do what they like.
Framework description
This is a fully declarative framework that implements various calls in the form of annotations + interfaces, including but not limited to database, http, cache, etc.The framework will automatically generate interface implementation classes through Reflection Emit technology.
Join the QQ group for feedback and suggestions
Group number : 799648362
Getting Started
Nuget
SummerBoot in your project .
PM> Install-Package SummerBoot
support frame
net core 3.1, net 6,net 8
document directory
- Thanks for the ide license provided by jetbrain
- SummerBoot (中文名:夏日启动)
- Core idea
- Framework description
- Join the QQ group for feedback and suggestions
- Getting Started
- support frame
- document directory
- SummerBoot uses repository for database operations
- Preparation
- 1.Registration service
- 2.Define a database entity class
- 3.Write a controller to automatically generate database tables through entity classes
- 4.Define storage interface
- 5.Add, delete, modify and Query, all support asynchronous synchronization
- 5.1 Added
- 5.2 delete
- 5.3 update
- 5.4 Query
- 5.5 Transaction Support
- 5.6 Custom implementation classes in special cases
- 5.6.1 Define an interface inherited from IBaseRepository , and define your own methods in the interface
- 5.6.2 Add an implementation class, inherited from the CustomBaseRepository class and the custom ICustomCustomerRepository interface, and add the AutoRegister annotation to the implementation class.
- 5.6.3 Example of use
- 6 Automatically generate entity classes based on database tables, or automatically generate ddl statements for database tables based on entity classes
- SummerBoot uses feign to make http calls
- 1.Registration service
- 2.Define the interface
- 3.Set the request header (header)
- 4.Custom Interceptor
- 5.Define the method
- 5.1 Common parameters in the method
- 5.2 Special parameters in the method
- 5.2.1 Parameters add Query annotations
- 5.2.2 Parameters add Body (BodySerializationKind.Form) annotations
- 5.2.3 Parameters add Body (BodySerializationKind.Json) annotations
- 5.2.4 Use the special class HeaderCollection as a method parameter to add request headers in batches
- 5.2.5 Use the special class BasicAuthorization as a method parameter to add the Authorization request header for basic authentication
- 5.2.6 Use the special class MultipartItem as a method parameter, and mark the Multipart annotation on the method to upload the attachment
- 5.2.7 Use the class Stream as the return type of the method to receive streaming data, such as downloading files.
- 5.2.8 Use the class HttpResponseMessage as the return type of the method to get the most original response message.
- 5.2.9 Use the class Task as the return type of the method, that is, no return value is required.
- 6.Microservice - access to nacos
- 6.1 Add nacos configuration in the configuration file
- 6.2 Access nacos configuration center
- 6.3 Access nacos service center
- 6.3.1 Add configuration in StartUp.cs
- [6.3.2 Define the interface for calling microservices](#632-define-the-interface-for-calling-
