netnrf response frame
In response to the rapid development frame
Demos: https://rf2.netnr.com
v3.x
- Front-end jQuery + Bootstrap + EasyUI + AceAdmin + fontAwesome
- The rear end using .NET Core + EF + SQL (SQLServer, MySQL, PostgreSQL, SQLite)
- Database script placed in
wwwroot/scripts/
the directory - Database conversion tool used: http://www.szmesoft.com/DB2DB
- All using LINQ, cross-database to avoid SQL injection
- Database script placed in
- Visual Studio 2019 to run the project
Project structure
- Netnr.Core library (reference NuGet, Source Address: https://github.com/netnr/Netnr.ClassLibrary )
- Netnr.Data data access, storage (Scaffold-DbContext command automatically generated)
- Netnr.Domain entity (Scaffold-DbContext command automatically generated)
- Netnr.Fast common method
- Netnr.Func application
- Netnr.ResponseFramework Web site
data sheet
- Users (SysUser)
- Roles, role permissions (SysRole)
- Menu (SysMenu)
- Button (SysButton)
- Log (SysLog)
- Dictionary (SysDictionary)
- Table configuration (SysTableConfig)
Features
- Log: System account login
- Permissions: Permissions role, menu and page control buttons
- Form: dynamic configuration title, width, sorting, alignment, formatting, freezing, click sorting
- Form: dynamically generated forms, custom headers, sorting, cross-column type, required, and support for multi-generation forms
- Query: dynamically generated query panel, custom fields query, query expressed as JSON
- Log: access logging
- Dictionary: General dictionary table
- Tools: database table information display, a key export the database table structure for Excel
- Task: scheduled task to clean up the temporary directory, reset the demo database
- Export: Public export Excel tables, custom queries body, supports conditional queries, column formatting, support for additional operation
- Upload: Upload Interface common
- Interface: All non-normalized page requests the interface, and generates a visual interface document Swagger, https://rf2.netnr.com/swagger
Instructions for use
- Create a table, write the comment field (easy to generate table configuration)
- Generate a table configuration, you can use [Toolbox] - [Table Management] - [generate] table configuration, you can also directly copy the folder
wwwroot/scripts/table-config/
correspondingSQL
script - Modify table configuration, tables, forms, queries, forms need to be adjusted to show (title, width, sorting, input type, column formatting, required, default values, etc., according to business development configuration items)
- Modify table configuration, input type configuration, to configure drop-down box, pull down trees, etc., in
Common
the controller write method,url
a source access point to the address of this method - Modify table configuration, the configuration column format, such as status formatted as required
启用
,停用
with a common format method used, you may configure a custom formatting methodscol_custom_字段小写
- Create a page, add this table menu page, configure the operating button
- Write table corresponding query, save (add / modify), delete methods, refer to [System Settings] inside the function
- Based on
z.js
the form of the method of the package (API consistent with EasyUI, see EasyUI Docs) configured to request the address lookup table, form type, tab, and the like check