Browse Source

fix TagRepository

pull/6858/head
Ahmet 5 years ago
parent
commit
4e35542889
  1. 2
      modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Tags/ITagRepository.cs
  2. 6
      modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Tags/EfCoreTagRepository.cs
  3. 6
      modules/cms-kit/src/Volo.CmsKit.MongoDB/Volo/CmsKit/MongoDB/Tags/MongoTagRepository.cs

2
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Tags/ITagRepository.cs

@ -12,7 +12,7 @@ namespace Volo.CmsKit.Tags
Task<Tag> GetAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default);
Task<bool> AnyAsync(

6
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Tags/EfCoreTagRepository.cs

@ -22,7 +22,7 @@ namespace Volo.CmsKit.Tags
public virtual Task<bool> AnyAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return DbSet.AnyAsync(x =>
@ -35,7 +35,7 @@ namespace Volo.CmsKit.Tags
public virtual Task<Tag> GetAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return GetAsync(x =>
@ -48,7 +48,7 @@ namespace Volo.CmsKit.Tags
public virtual Task<Tag> FindAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return FindAsync(x =>

6
modules/cms-kit/src/Volo.CmsKit.MongoDB/Volo/CmsKit/MongoDB/Tags/MongoTagRepository.cs

@ -20,7 +20,7 @@ namespace Volo.CmsKit.MongoDB.Tags
public Task<bool> AnyAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return GetMongoQueryable()
@ -34,7 +34,7 @@ namespace Volo.CmsKit.MongoDB.Tags
public Task<Volo.CmsKit.Tags.Tag> GetAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return GetAsync(x =>
@ -47,7 +47,7 @@ namespace Volo.CmsKit.MongoDB.Tags
public Task<Volo.CmsKit.Tags.Tag> FindAsync(
[NotNull] string entityType,
[NotNull] string name,
Guid? tenantId,
Guid? tenantId = null,
CancellationToken cancellationToken = default)
{
return FindAsync(x =>

Loading…
Cancel
Save