Happy Fourth of July, everybody.Known
Another wave of features has been updated.
Following on from the last release, have been refining the site documentation,KnownCMS
open source projects and solving some of the problems raised by the framework clients. The main issues that customers feedback during this period are as follows:
- WeChat template messages can not be received, check the reason is a network problem, so this version to the background task to send messages
- No code page templates need to be customized
- No code form field components need to be customized
- Database access needs to be supported
EFCore
- Some of the users were very meticulous in their testing and found some
BUG
Updates
- π¨ support manual refresh microsoft access
Token
- π¨ Optimize startup program error logging
- π
A new library separate from the project
- π Fix Embedding
iFrame
Problems with pages not opening - π Fix System License Key Verification panel issue
- π Fix advanced search field display issue
- π Fix data dictionary no category added issue
- π Fix no code module date lookup conditional control issue
- π Fix asynchronous import text not displaying issue
- π WeChat template message sending to increase background task logging
- π Add custom configuration options to the AutoForms page
- π Table rows support double-click events
- π¨ Optimize table viewing and editing for multiple popup issues
- π Form field type support for extended custom components
- π¨ Optimization
Database
component that supportsEFCore
- π¨ Optimize the import component prompt message refresh issue
- π¨
IDataRepository
Change to Dependency Injection
Details
- Added a separate project to store third-party database access components, with the following project address
/known/known-db
- Customized Page Configuration
- In the front-end project
Configure the following in
public static class AppClient
{
public static void AddSampleRazor(this IServiceCollection services)
{
// Configuring the Build Automated Forms Page Method Delegation
= (b, m) => <CustomTablePage>().Set(c => , m).Build();
}
}
- Adding a Custom AutoForm Page Component
web page
@inherits BaseComponent
<div>@Model?.PageName</div>
@code {
// Automatic Form Page Configuration Model
[Parameter] public TableModel<Dictionary<string, object>> Model { get; set; }
}
- Custom form field components
- When the framework's built-in form field component
Input
γSelect
etc. do not meet the business requirements, the framework can support customization in the project - In [Module Management - Form Configuration], field type selection
Custom
When you select a customized field component in the project - How to be able to select your own extended custom field components here, as long as the component inherits the
ICustomField
interface, as shown in the following example
// CustomField is the default abstract custom component base class of the framework and can be replaced by any component in the project.
// ICustomField must be inherited, otherwise it won't show up in the online form.
class MyField : CustomField, ICustomField
MyField : CustomField, ICustomField {
protected override void BuildRender(RenderTreeBuilder builder)
{
// Build the content of your custom component here, such as a button
("Custom", <MouseEventArgs>(OnClick)); ;)
}
private void OnClick(MouseEventArgs args) { }
}
- The effect is as follows
-
EFCore
The configuration is as follows
- exist
References in the project
<Project Sdk="">.
<ItemGroup>
<PackageReference Include="" Version="1.0.0" />
<! --Also need to add EFCore's database dependencies, here SqlServer as an example -- >
<PackageReference Include="" Version="8.0.8" />; </ItemReference Include="" Version="8.0.8" />
</ItemGroup>
</Project>
- exist
Add the following code to the file
(option =>
{
// Configure the database
= c => (("ConnString").Get<string>());
// Configure the business library data model here
// = m => <SysLog>();
});