Skip to content

Commit 8833dc5

Browse files
committed
feat: add toolbar control, general improvements and minor bugs
1 parent c33838d commit 8833dc5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/WebExpress.WebIndex/IndexDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public virtual async Task RemoveAsync(TIndexItem item)
434434
/// Returns the number of items.
435435
/// </summary>
436436
/// <returns>The number of items.</returns>
437-
public new uint Count()
437+
public uint Count()
438438
{
439439
return DocumentStore.Count();
440440
}
@@ -506,7 +506,7 @@ public async Task DropAsync()
506506
/// <summary>
507507
/// Removed all data from the index.
508508
/// </summary>
509-
public virtual new void Clear()
509+
public virtual void Clear()
510510
{
511511
foreach (var fielld in Fields)
512512
{

src/WebExpress.WebIndex/Storage/IndexStorageSchema.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class IndexStorageSchema<TIndexItem> : IIndexSchema<TIndexItem>
1515
where TIndexItem : IIndexItem
1616
{
1717
private readonly string _extentions = "ws";
18-
private readonly int _version = 1;
18+
//private readonly int _version = 1;
1919
private static readonly JsonSerializerOptions _jsonSerializerOptions = new() { WriteIndented = true };
2020
private static readonly JsonSerializerOptions _jsonDeserializerOptions = new() { PropertyNameCaseInsensitive = true };
2121

@@ -111,7 +111,7 @@ private dynamic GetSchema()
111111
/// </summary>
112112
/// <param name="property">The property info.</param>
113113
/// <returns>The name of the type.</returns>
114-
private object GetType(PropertyInfo property)
114+
private static string GetType(PropertyInfo property)
115115
{
116116
if (property.PropertyType.IsPrimitive)
117117
{

0 commit comments

Comments
 (0)