Skip to content

Commit c63f8ce

Browse files
committed
Merge branch 'master' of https://github.com/izanhzh/Amos.Abp
2 parents 2e9944a + 46e9fb0 commit c63f8ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
139139
```
140140
7. Implement temp table repository in the EntityFrameworkCore layer
141141
```C#
142-
public class YourTempTableRepository : EfCoreTempTableRepository<IYourDbContext>, IYourTempTableRepository, ITransientDependency
142+
public class YourTempTableRepository : EfCoreTempTableRepository<YourDbContext,IYourDbContext>, IYourTempTableRepository, ITransientDependency
143143
{
144144
public YourTempTableRepository(IDbContextProvider<IYourDbContext> dbContextProvider)
145145
: base(dbContextProvider)
@@ -216,7 +216,9 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
216216
</Item>
217217
</SqlScripts>
218218
```
219-
Note: [Namespace] and [DatabaseProvider] are correctly filled in the xml
219+
> Note:
220+
> 1. [Namespace] and [DatabaseProvider] are correctly filled in the xml
221+
> 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.
220222
221223
+ Configure `SqlScriptOptions` and add DependsOn in your EntityFrameworkCoreModule
222224
```C#
@@ -235,7 +237,7 @@ This repository is an extension based on Volo Abp(https://github.com/abpframewor
235237
Note: [YourDefinedSqlScriptNamespace] is same as xml file [Namespace]
236238
5. Implement sql script repository in the EntityFrameworkCore layer
237239
```C#
238-
public class YourSqlScriptRepository : SqlScriptRepository<IYourDbContext>, IYourSqlScriptRepository, ITransientDependency
240+
public class YourSqlScriptRepository : SqlScriptRepository<YourDbContext,IYourDbContext>, IYourSqlScriptRepository, ITransientDependency
239241
{
240242
public YourSqlScriptRepository(IDbContextProvider<IProductManagementDbContext> dbContextProvider, ISqlScriptProvider sqlScriptProvider)
241243
: base(dbContextProvider, sqlScriptProvider)

0 commit comments

Comments
 (0)