feat: 初始化NewLife Studio项目,完成基础框架与数据管理模块
何炳宏 authored at 2026-05-26 12:09:09
438.00 B
NewLife.Studio
using NewLife.Studio.Core.DTOs;

namespace NewLife.Studio.Data;

/// <summary>数据库 Provider 接口</summary>
public interface IDataProvider
{
    string ProviderName { get; }
    string[] SupportedSchemes { get; }
    bool CanTestConnection { get; }

    Task<bool> TestConnectionAsync(ConnectionInfo conn, CancellationToken ct = default);
    Task<IDbSession> OpenSessionAsync(ConnectionInfo conn, CancellationToken ct = default);
}