mirror of https://github.com/abpframework/abp.git
Browse Source
Introduces a ProviderName property to IRepository and related base classes, requiring repositories to specify their provider via constructor. Adds provider constants for EF Core, MemoryDb, and MongoDB, and updates repository implementations and tests accordingly. Also refactors EntityName to a public property and renames WithEntityName extension to SetEntityName.pull/23638/head
11 changed files with 54 additions and 12 deletions
@ -0,0 +1,6 @@ |
|||
namespace Volo.Abp.EntityFrameworkCore; |
|||
|
|||
public class AbpEfCoreConsts |
|||
{ |
|||
public const string ProviderName = "Volo.Abp.EntityFrameworkCore"; |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
namespace Volo.Abp.MemoryDb; |
|||
|
|||
public class AbpMemoryDbConsts |
|||
{ |
|||
public const string ProviderName = "Volo.Abp.MemoryDb"; |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
namespace Volo.Abp.MongoDB; |
|||
|
|||
public class AbpMongoDbConsts |
|||
{ |
|||
public const string ProviderName = "Volo.Abp.MongoDB"; |
|||
} |
|||
Loading…
Reference in new issue