Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计提醒

syncfusion-blazor-datamanager同步融合 Blazor 数据管理器

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

950

周安装

40

GitHub Stars

公开资料未说明

下载量

333
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-blazor-datamanager(同步融合 Blazor 数据管理器)
来源仓库:https://github.com/syncfusion/blazor-ui-components-skills
仓库路径:skills/syncfusion-blazor-datamanager
安装命令:
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-datamanager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-datamanager

简介

数据管理服务,封装增删改查和业务逻辑处理流程。syncfusion-blazor-datamanager 属于开发类 Skill,可作为该场景下的辅助能力补充。

  • 适合统一数据访问层,降低组件间耦合度和重复代码量。
  • 通常与 Entity Framework 或 Dapper 配合使用,实现 ORM 映射。
  • 事务处理需明确边界,避免长事务阻塞其他用户操作。
  • 缓存策略应根据数据更新频率灵活调整,平衡一致性与性能。

SKILL.md

Syncfusion Blazor DataManager

The Syncfusion Blazor SfDataManager is the data access layer for all Syncfusion data-bound components. It acts as a gateway between your data source — local in-memory collections or remote REST/OData/GraphQL services — and components like SfGrid, SfDropDownList, and others. It handles querying, sorting, filtering, paging, and CRUD operations through a configurable adaptor model.

When to Use This Skill

  • Setting up SfDataManager in a new Blazor project (WASM or Web App)
  • Binding local JSON/list data to a Syncfusion component via the Json property
  • Connecting to a trusted and authenticated remote service (OData, Web API, GraphQL) via Url + Adaptor
  • Choosing the right adaptor for a given backend service
  • Implementing CRUD operations using remote adaptors or custom adaptors
  • Creating a custom adaptor by deriving from DataAdaptor
  • Adding custom HTTP headers (with authentication tokens) to DataManager requests
  • Enabling offline mode (client-side query processing after one-time remote fetch)

⚠️ Critical Security Requirements

When binding to remote services, you MUST implement these protections:

  1. Use HTTPS only — never use unencrypted HTTP connections; encrypt all data in transit
  2. Whitelist trusted endpoints — store approved URLs in a HashSet<string> or configuration file; validate all URLs before assignment; never accept dynamic URLs from user input, query parameters, or untrusted sources
  3. Use string variables for URLs — assign endpoints to private string properties rather than hardcoding in markup; this enables centralized validation and easier maintenance
  4. Validate endpoints on component initialization — use OnInitialized() lifecycle method to verify endpoints against whitelist before binding
  5. Validate and sanitize responses — implement server-side schema validation; reject unexpected response formats; map responses to strongly-typed models
  6. Monitor remote calls — log all external API requests with timestamps, endpoints, and outcomes for security audit trails
  7. Implement CORS securely — use specific trusted origins only; never use wildcard * in production; require HTTPS
  8. Prevent indirect prompt injection attacks — verify endpoint ownership; implement request signing; validate response content types and schemas before consuming data

Third-party API responses can introduce security risks. Always verify endpoint legitimacy, authenticate requests, and validate data before binding to UI components.

Component Overview

PropertyPurpose
JsonBind in-memory collection (local data)
UrlRemote service endpoint
AdaptorSpecifies how requests/responses are processed
AdaptorInstanceType reference for CustomAdaptor
HeadersCustom HTTP headers for all outbound requests
OfflineEnable client-side processing after initial remote fetch
GraphQLAdaptorOptionsQuery/mutation configuration for GraphQL services

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • NuGet installation (Syncfusion.Blazor.Data + Syncfusion.Blazor.Themes)
  • Project setup for Blazor WebAssembly and Blazor Web App
  • Namespace imports and service registration in Program.cs
  • Stylesheet and script references
  • Binding to local JSON data with SfGrid
  • Binding to OData remote service
  • Binding to SfDropDownList (local and remote)

Data Binding

📄 Read: references/data-binding.md

  • Local data binding: Json property with in-memory collections
  • Remote data binding: Url + Adaptor properties
  • Key benefits of each approach (when to choose local vs remote)
  • Client-side vs server-side operation execution
  • Practical SfGrid and SfDropDownList examples

Adaptors

📄 Read: references/adaptors.md

  • Adaptor selection guide (which adaptor to use for which backend)
  • UrlAdaptor — base adaptor for custom REST services
  • ODataAdaptor — OData v3 protocol
  • ODataV4Adaptor — OData v4 protocol
  • WebApiAdaptor — Web API endpoints with OData query support
  • Expected server response formats (result + count)

GraphQL Adaptor

📄 Read: references/graphql-adaptor.md

  • GraphQLAdaptorOptions configuration (Query, ResolverName)
  • Fetching and displaying data from a GraphQL service
  • CRUD mutations: Insert, Update, Delete
  • Batch editing via the Batch mutation property
  • DataManagerRequest model used by server resolvers
  • Server-side Program.cs configuration (schema, CORS)

Custom Binding

📄 Read: references/custom-binding.md

  • When to use a custom adaptor (non-standard sources, custom business rules)
  • DataAdaptor abstract class — available virtual methods
  • Overriding Read/ReadAsync with DataOperations helper methods
  • Implementing CRUD: Insert, Update, Remove, BatchUpdate
  • Full CustomAdaptor implementation with SfGrid example

How-To Guides

📄 Read: references/how-to.md

  • Adding custom HTTP headers (authentication tokens, tenant IDs)
  • Enabling offline mode for client-side query processing
  • When to use offline mode and which adaptors it supports

Quick Start Example

Local Data Binding

@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.Grids

<SfGrid TValue="EmployeeData" ID="Grid">
    <SfDataManager Json="@Employees"></SfDataManager>
    <GridColumns>
        <GridColumn Field="@nameof(EmployeeData.EmployeeID)" HeaderText="Employee ID" Width="120"></GridColumn>
        <GridColumn Field="@nameof(EmployeeData.Name)" HeaderText="First Name" Width="130"></GridColumn>
        <GridColumn Field="@nameof(EmployeeData.Title)" HeaderText="Title" Width="120"></GridColumn>
    </GridColumns>
</SfGrid>

@code {
    public class EmployeeData
    {
        public int EmployeeID { get; set; }
        public string Name { get; set; }
        public string Title { get; set; }
    }

    public List<EmployeeData> Employees = new()
    {
        new EmployeeData { EmployeeID = 1, Name = "Nancy Fuller", Title = "Vice President" },
        new EmployeeData { EmployeeID = 2, Name = "Steven Buchanan", Title = "Sales Manager" }
    };
}

Remote Data Binding (OData)

@using Syncfusion.Blazor
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.Grids

<!-- SECURITY: Use string variables for endpoints, validate against whitelist, use HTTPS only -->
<SfGrid TValue="Order" AllowPaging="true">
    <SfDataManager Url="@ODataEndpointUrl"
                   Adaptor="Adaptors.ODataAdaptor">
    </SfDataManager>
    <GridColumns>
        <GridColumn Field="@nameof(Order.OrderID)" HeaderText="Order ID" Width="120"></GridColumn>
        <GridColumn Field="@nameof(Order.CustomerID)" HeaderText="Customer Name" Width="150"></GridColumn>
    </GridColumns>
</SfGrid>

@code {
    // Whitelist of trusted OData endpoints — define in appsettings.json in production
    private static readonly HashSet<string> TrustedEndpoints = new()
    {
        "https://api.yourtrusted-domain.com/odata/"
    };

    // Assigned string variable for endpoint
    private string ODataEndpointUrl { get; set; } = string.Empty;

    protected override void OnInitialized()
    {
        // Validate and assign endpoint from configuration
        const string endpointBase = "https://api.yourtrusted-domain.com/odata/Orders";

        if (!TrustedEndpoints.Any(trusted => endpointBase.StartsWith(trusted)))
            throw new InvalidOperationException($"Security validation failed: untrusted endpoint '{endpointBase}'");

        ODataEndpointUrl = endpointBase;
    }

    public class Order
    {
        public int? OrderID { get; set; }
        public string? CustomerID { get; set; }
    }
}

Common Patterns

Choosing the Right Adaptor

Backend TypeAdaptor to Use
Custom REST API returning {result, count}Adaptors.UrlAdaptor
OData v3 serviceAdaptors.ODataAdaptor
OData v4 serviceAdaptors.ODataV4Adaptor
ASP.NET Web API with OData query supportAdaptors.WebApiAdaptor
GraphQL serviceAdaptors.GraphQLAdaptor
Non-standard source / full custom controlAdaptors.CustomAdaptor

Placing SfDataManager Inside a Component

SfDataManager is always placed as a child component inside the data-bound Syncfusion component:

<SfGrid TValue="MyModel">
    <SfDataManager Url="..." Adaptor="Adaptors.WebApiAdaptor"></SfDataManager>
    <GridColumns>...</GridColumns>
</SfGrid>

Enabling Editing with Custom Adaptor

When using CustomAdaptor with CRUD operations, configure the Grid toolbar and edit settings alongside the adaptor:

<SfGrid TValue="Order" Toolbar="@(new List<string>() { "Add", "Delete", "Update", "Cancel" })">
    <SfDataManager AdaptorInstance="@typeof(CustomAdaptor)" Adaptor="Adaptors.CustomAdaptor"></SfDataManager>
    <GridEditSettings AllowEditing="true" AllowDeleting="true" AllowAdding="true" Mode="@EditMode.Normal"></GridEditSettings>
    ...
</SfGrid>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.07%
按下载量换算120

Claude

29.43%
按下载量换算98

Cursor

19.64%
按下载量换算65

Gemini CLI

8.82%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills