Skip to content
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

chore: Modify the introduction of Uow usage documentation #3

Merged
merged 2 commits into from
Jan 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -118,12 +118,14 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
dbOptions.UseSoftDelete(builder.Services);//Start soft delete
})
dbOptions.UseSoftDelete(builder.Services);
});
});

```

> When the entity inherits ISoftware and is deleted, change the delete state to the modified state, and cooperate with the custom Remove operation to achieve soft deletion
7 changes: 4 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -118,12 +118,13 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
dbOptions.UseSoftDelete(builder.Services);//启动软删除
})
});
});
```

> 当实体继承ISoftware,且被删除时,将删除状态改为修改状态,并配合自定义Remove操作,实现软删除
7 changes: 4 additions & 3 deletions src/Data/MASA.Contrib.Data.Contracts.EF/README.md
Original file line number Diff line number Diff line change
@@ -10,12 +10,13 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
dbOptions.UseSoftDelete(builder.Services);
})
});
});
```

> When the entity inherits ISoftware and is deleted, change the delete state to the modified state, and cooperate with the custom Remove operation to achieve soft deletion
7 changes: 4 additions & 3 deletions src/Data/MASA.Contrib.Data.Contracts.EF/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -10,12 +10,13 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
dbOptions.UseSoftDelete(builder.Services);//启动软删除
})
});
});
```

> 当实体继承ISoftware,且被删除时,将删除状态改为修改状态,并配合自定义Remove操作,实现软删除
7 changes: 4 additions & 3 deletions src/Data/MASA.Contrib.Data.UoW.EF/README.md
Original file line number Diff line number Diff line change
@@ -10,10 +10,11 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
})
});
});
```

7 changes: 4 additions & 3 deletions src/Data/MASA.Contrib.Data.UoW.EF/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -10,10 +10,11 @@ Install-Package MASA.Contrib.Data.Contracts.EF
```

```C#
builder.Services
.AddUoW<CustomDbContext>(dbOptions =>
builder.Services.AddEventBus(options => {
options.UseUoW<CustomDbContext>(dbOptions =>
{
dbOptions.UseSqlServer("server=localhost;uid=sa;pwd=P@ssw0rd;database=identity");
})
});
});
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix Unchanged files with check annotations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what this means?