Location>code7788 >text

Blazor Development Framework Known-V2.0.13

Popularity:634 ℃/2024-10-02 20:20:34

Happy Fourth of July, everybody.KnownAnother wave of features has been updated.

Following on from the last release, have been refining the site documentation,KnownCMSopen 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 supportedEFCore
  • Some of the users were very meticulous in their testing and found someBUG

Updates

  • πŸ”¨ support manual refresh microsoft accessToken
  • πŸ”¨ Optimize startup program error logging
  • πŸ˜„A new library separate from the project
  • πŸ› Fix EmbeddingiFrameProblems 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
  • πŸ”¨ OptimizationDatabasecomponent that supportsEFCore
  • πŸ”¨ Optimize the import component prompt message refresh issue
  • πŸ”¨IDataRepositoryChange to Dependency Injection

Details

  1. Added a separate project to store third-party database access components, with the following project address

/known/known-db

  1. Customized Page Configuration
  • In the front-end projectConfigure 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 Componentweb page
@inherits BaseComponent

<div>@Model?.PageName</div>

@code {
    // Automatic Form Page Configuration Model
    [Parameter] public TableModel<Dictionary<string, object>> Model { get; set; }
}
  1. Custom form field components
  • When the framework's built-in form field componentInput、Selectetc. do not meet the business requirements, the framework can support customization in the project
  • In [Module Management - Form Configuration], field type selectionCustomWhen 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 theICustomFieldinterface, 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
    image
  1. EFCoreThe configuration is as follows
  • existReferences 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>
  • existAdd the following code to the file
(option =>
{
    // Configure the database
     = c => (("ConnString").Get<string>());
    // Configure the business library data model here
    // = m => <SysLog>();
});