modify query property names
This commit is contained in:
parent
0178e015e3
commit
3a9885abd8
|
@ -31,14 +31,14 @@ namespace Oqtane.Repository
|
||||||
searchContents = searchContents.Where(i => searchQuery.EntityNames.Contains(i.EntityName));
|
searchContents = searchContents.Where(i => searchQuery.EntityNames.Contains(i.EntityName));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchQuery.BeginModifiedTimeUtc != DateTime.MinValue)
|
if (searchQuery.From != DateTime.MinValue)
|
||||||
{
|
{
|
||||||
searchContents = searchContents.Where(i => i.ContentModifiedOn >= searchQuery.BeginModifiedTimeUtc);
|
searchContents = searchContents.Where(i => i.ContentModifiedOn >= searchQuery.From);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchQuery.EndModifiedTimeUtc != DateTime.MinValue)
|
if (searchQuery.To != DateTime.MinValue)
|
||||||
{
|
{
|
||||||
searchContents = searchContents.Where(i => i.ContentModifiedOn <= searchQuery.EndModifiedTimeUtc);
|
searchContents = searchContents.Where(i => i.ContentModifiedOn <= searchQuery.To);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchQuery.Properties != null && searchQuery.Properties.Any())
|
if (searchQuery.Properties != null && searchQuery.Properties.Any())
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace Oqtane.Models
|
||||||
|
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
|
|
||||||
public string Permissions { get; set; }
|
public string Permissions { get; set; } // comma delimited EntityName:EntityId,EntityName:EntityId
|
||||||
|
|
||||||
public string ContentModifiedBy { get; set; }
|
public string ContentModifiedBy { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@ namespace Oqtane.Models
|
||||||
|
|
||||||
public List<string> EntityNames { get; set; } = new List<string>();
|
public List<string> EntityNames { get; set; } = new List<string>();
|
||||||
|
|
||||||
public DateTime BeginModifiedTimeUtc { get; set; }
|
public DateTime From { get; set; }
|
||||||
|
|
||||||
public DateTime EndModifiedTimeUtc { get; set; }
|
public DateTime To { get; set; }
|
||||||
|
|
||||||
public IDictionary<string, string> Properties { get; set; } = new Dictionary<string, string>();
|
public IDictionary<string, string> Properties { get; set; } = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user