NET 8, WPF, MVVM design patterns, Blazor and MySQL database to build an enterprise-class workflow system based on the WPF client framework - 6.0.
Projects
The framework uses the Prism framework to implement the MVVM pattern, which not only simplifies the typical application scenarios of MVVM, but also takes full advantage of Dependency Injection (DI), message passing, and container management.
There are many standard ways to use MVVM on the Internet, but there is no system-level framework. This framework is built from the login to the use of specific business , and automatic upgrade are completed .
In addition, the framework also introduces advanced features such as cutter-oriented programming (AOP) and model-association mapping (MAP) to further enhance the scalability and flexibility of the system.
functional module
1. Automatically update the software.
2. Use instead of .
3. Implement the AvalonDock step with Prism.
4. Logging through AOP.
5. Design ideas for code generators.
6. Workflow implementation strategy (with editor and backend).
7. Create a customized installation interface for the installation package method.
8. Local service startup method.
9, generic CRUD configuration , no need to define the class , add data directly in the database .
10, realize drag and drop programming.
11. Use the same structural model as BS (blazor), if BS and CS for code harmonization.
12, Prism area window multi-opening and area registration isolation implementation.
Quick Preview
WPF client download can be run directly, the default configuration file
<appSettings> <add key="Title" value="AIStudio" /> <add key="Language" value= "Chinese" /> <add key="FontSize" value="16" /> <add key="FontFamily" value= "SONG" /> <add key="Accent" value="BlueGray" /> <add key="Theme" value="BaseGray11" /> <add key="NavigationLocation" value="Left" /> <add key="NavigationAccent" value="Dark" /> <add key="TitleAccent" value="Normal" /> <add key="ToolBarLocation" value="Top" /> <add key="Version" value="1.0.20201115-rc3" /> <add key="ServerIP" value="http://localhost:5000/" /> <add key="UpdateAddress" value="http://localhost:5000//update" /> </appSettings>
1、Quick preview mode 1
Where ServerIP is the backend interface address.
Account Password: Admin, Admin.
2、Quick preview mode 2
No server is required, the client uses SQLite local data directly, and the client runs independently.
Account Password Admin, Admin
<add key="ServerIP" value=""/> <add key="UpdateAddress" value="http://localhost:5000/Update/"/> <add key="ConString" value="Data Source="/> <add key="DatabaseType" value="SQLite"/> <add key="DeleteMode" value="Logic"/>
Comment out the ServerIP, then it is using efcore to get the data, just change the ConString and DatabaseType. Also, the default database deletion mode is soft delete.
3. Quick preview mode 3
Start ServiceMonitor and click Start Service. After the local service starts, you can run the client to connect.
<add key="ServerIP" value="http://localhost:5000" />
The Quick Preview method can be switched directly from the login screen.
Project framework
The framework for 6.0 is as follows
System Extension : If you need to extend your own page, just follow the directory of this project to do so.
Project Features
1、Quick code generation
Add a new table to the database.
Select the Code Generation menu, check the new table that comes back from the query, and the region is the project to which you are adding the interface, e.g. the default value Base_Manage will add the page under the .Base_Manage project.
Just click Generate and restart the client for a quick preview (provided that the server side has also generated (in the code generator on the web side) the appropriate controllers and interfaces)
2. Large screen interface (drag and drop, full screen)
3、Form Form
Form-Code Generation, a supplement to the Code Generator.
4. Generic crud method
Read the database configuration , generate DataGrid, completely without class , the background to complete the relevant interfaces , the foreground does not need to change any code , you only need to insert scripts in the database can be .
Generate DataGrid directly from class
5、Large file upload and download
6、Multi-window, multi-screen mode
Project Address
Github:/akwkevin/aistudio.-wpf.-aclient
Gitee: /akwkevin/aistudio.-wpf.-aclient
Controls Library.
If you found this article helpful, why not support it with a like? Your support is what keeps me motivated to continue sharing my knowledge. Feel free to leave a comment if you have any questions or need further help.
You can also join WeChat[DotNet Technician] community to share ideas and grow with other tech-loving peers!Excellence is a habit, so feel free to leave a comment and learn!