-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]Elsa.EntityFrameworkCore.SqlServer启动如何配置? #5401
Comments
您好, 要将Elsa 3.0 配置为使用 SQL Server 数据库,您需要在您的 .NET Core 项目中添加对应的 NuGet 包,并在您的 以下是一个基本的配置示例: using Elsa.Persistence.EntityFrameworkCore.Extensions;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
// 添加 Elsa 服务并配置 Entity Framework Core 使用 SQL Server
builder.Services.AddElsa(elsa => elsa
.UseEntityFrameworkPersistence(ef => ef.UseSqlServer("YourConnectionString"))
// 添加其他 Elsa 配置,例如活动、触发器等
);
var app = builder.Build();
// 其他配置和中间件
// ...
app.Run(); 在这个示例中, 请注意,这个示例是基于 Elsa 3.0 的配置方式,如果您使用的是 Elsa 2.x 或其他版本,配置方式可能会有所不同。 This comment was generated by Glime. |
@zqhgit001 I had to block you due to repeated spam and duplicate issues that are often incomplete or incomprehensible. If you feel this action is unfair, please contact me on Discord (@sfmskywalker) to discuss this further. |
您好:
Elsa 3.0 如何配置Sqlserver数据库?Elsa.EntityFrameworkCore.SqlServer
The text was updated successfully, but these errors were encountered: