Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
izanhzh committed Jul 17, 2024
2 parents 2e9944a + 46e9fb0 commit c63f8ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
```
7. Implement temp table repository in the EntityFrameworkCore layer
```C#
public class YourTempTableRepository : EfCoreTempTableRepository<IYourDbContext>, IYourTempTableRepository, ITransientDependency
public class YourTempTableRepository : EfCoreTempTableRepository<YourDbContext,IYourDbContext>, IYourTempTableRepository, ITransientDependency
{
public YourTempTableRepository(IDbContextProvider<IYourDbContext> dbContextProvider)
: base(dbContextProvider)
Expand Down Expand Up @@ -216,7 +216,9 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
</Item>
</SqlScripts>
```
Note: [Namespace] and [DatabaseProvider] are correctly filled in the xml
> Note:
> 1. [Namespace] and [DatabaseProvider] are correctly filled in the xml
> 2. The handling of SQL string placeholder parameters (not query parameters) uses the `Scriban`(https://github.com/scriban/scriban) library. Please pay attention to the parameter settings.
+ Configure `SqlScriptOptions` and add DependsOn in your EntityFrameworkCoreModule
```C#
Expand All @@ -235,7 +237,7 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
Note: [YourDefinedSqlScriptNamespace] is same as xml file [Namespace]
5. Implement sql script repository in the EntityFrameworkCore layer
```C#
public class YourSqlScriptRepository : SqlScriptRepository<IYourDbContext>, IYourSqlScriptRepository, ITransientDependency
public class YourSqlScriptRepository : SqlScriptRepository<YourDbContext,IYourDbContext>, IYourSqlScriptRepository, ITransientDependency
{
public YourSqlScriptRepository(IDbContextProvider<IProductManagementDbContext> dbContextProvider, ISqlScriptProvider sqlScriptProvider)
: base(dbContextProvider, sqlScriptProvider)
Expand Down

0 comments on commit c63f8ce

Please sign in to comment.