瀏覽代碼

Update samples

master
Savorboard 4 年之前
父節點
當前提交
7489ae9d8e
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      samples/Sample.RabbitMQ.MySql/AppDbContext.cs
  2. +1
    -1
      samples/Sample.RabbitMQ.MySql/Startup.cs

+ 1
- 1
samples/Sample.RabbitMQ.MySql/AppDbContext.cs 查看文件

@@ -26,7 +26,7 @@ namespace Sample.RabbitMQ.MySql
}
public class AppDbContext : DbContext
{
public const string ConnectionString = "Server=192.168.2.120;Database=captest;UserId=root;Password=123123;";
public const string ConnectionString = "Server=localhost;Database=testcap;UserId=root;Password=123123;";

public DbSet<Person> Persons { get; set; }



+ 1
- 1
samples/Sample.RabbitMQ.MySql/Startup.cs 查看文件

@@ -14,7 +14,7 @@ namespace Sample.RabbitMQ.MySql
services.AddCap(x =>
{
x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ("192.168.2.120");
x.UseRabbitMQ("localhost");
x.UseDashboard();
x.FailedRetryCount = 5;
x.FailedThresholdCallback = (type, msg) =>


Loading…
取消
儲存