12345678910111213141516171819 |
- using VCommon.Ioc;
- using VCommon.VApplication;
- using VCommon.VApplication.EntityFrameworkCore;
- using VCommon.VEntity;
- using VCommonCoreExample.Audit;
- using VCommonCoreExample.EntityFrameworkCore;
- namespace VCommonCoreExample.AppServices.Basic
- {
- public class DbAppServiceBase : AppServiceBase
- {
- protected ExampleDbContext GetDbContext() => IocManager.Resolve<ExampleDbContext>();
- }
- public class DbTableAppServiceBase<TEntity> : AppServiceBase where TEntity : VEntityBase
- {
- protected VAppEfRepository<ExampleDbContext, TEntity> GetRepository() => new();
- }
- }
|