Rename GetListWithoutContentByProjectId to GetListWithoutDetailsByProjectId

pull/9505/head
Berkan Sasmaz 4 years ago
parent 7991d53fa0
commit 86a4da242e

@ -18,15 +18,7 @@ namespace Volo.Docs.Admin.Documents
public virtual string FileName { get; set; }
public virtual string Format { get; set; }
public virtual string EditLink { get; set; }
public virtual string RootUrl { get; set; }
public virtual string RawRootUrl { get; set; }
public virtual string LocalDirectory { get; set; }
public virtual DateTime CreationTime { get; set; }
public virtual DateTime LastUpdatedTime { get; set; }

@ -205,7 +205,7 @@ namespace Volo.Docs.Documents
foreach (var project in projects)
{
var documentWithoutDetailsList = await _documentRepository.GetListWithoutContentByProjectId(project.Id);
var documentWithoutDetailsList = await _documentRepository.GetListWithoutDetailsByProjectId(project.Id);
foreach (var document in documentWithoutDetailsList)
{

@ -17,15 +17,7 @@ namespace Volo.Docs.Documents
public virtual string FileName { get; set; }
public virtual string Format { get; set; }
public virtual string EditLink { get; set; }
public virtual string RootUrl { get; set; }
public virtual string RawRootUrl { get; set; }
public virtual string LocalDirectory { get; set; }
public virtual DateTime CreationTime { get; set; }
public virtual DateTime LastUpdatedTime { get; set; }

@ -8,7 +8,7 @@ namespace Volo.Docs.Documents
{
public interface IDocumentRepository : IBasicRepository<Document>
{
Task<List<DocumentWithoutDetails>> GetListWithoutContentByProjectId(Guid projectId, CancellationToken cancellationToken = default);
Task<List<DocumentWithoutDetails>> GetListWithoutDetailsByProjectId(Guid projectId, CancellationToken cancellationToken = default);
Task<List<Document>> GetListByProjectId(Guid projectId, CancellationToken cancellationToken = default);

@ -18,7 +18,7 @@ namespace Volo.Docs.Documents
{
}
public async Task<List<DocumentWithoutDetails>> GetListWithoutContentByProjectId(Guid projectId, CancellationToken cancellationToken = default)
public async Task<List<DocumentWithoutDetails>> GetListWithoutDetailsByProjectId(Guid projectId, CancellationToken cancellationToken = default)
{
return await (await GetDbSetAsync())
.Where(d => d.ProjectId == projectId)
@ -200,10 +200,6 @@ namespace Volo.Docs.Documents
LanguageCode = x.LanguageCode,
FileName = x.FileName,
Format = x.Format,
EditLink = x.EditLink,
RootUrl = x.RootUrl,
RawRootUrl = x.RawRootUrl,
LocalDirectory = x.LocalDirectory,
CreationTime = x.CreationTime,
LastUpdatedTime = x.LastUpdatedTime,
LastSignificantUpdateTime = x.LastSignificantUpdateTime,

@ -20,7 +20,7 @@ namespace Volo.Docs.Documents
{
}
public async Task<List<DocumentWithoutDetails>> GetListWithoutContentByProjectId(Guid projectId, CancellationToken cancellationToken = default)
public async Task<List<DocumentWithoutDetails>> GetListWithoutDetailsByProjectId(Guid projectId, CancellationToken cancellationToken = default)
{
return await (await GetMongoQueryableAsync(cancellationToken))
.Where(d => d.ProjectId == projectId)
@ -241,10 +241,6 @@ namespace Volo.Docs.Documents
LanguageCode = x.LanguageCode,
FileName = x.FileName,
Format = x.Format,
EditLink = x.EditLink,
RootUrl = x.RootUrl,
RawRootUrl = x.RawRootUrl,
LocalDirectory = x.LocalDirectory,
CreationTime = x.CreationTime,
LastUpdatedTime = x.LastUpdatedTime,
LastSignificantUpdateTime = x.LastSignificantUpdateTime,

Loading…
Cancel
Save