Skip to content

Commit b5d31d1

Browse files
committed
int version
1 parent b9795f6 commit b5d31d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

IndexDb.Example/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
builder.Services.AddBlazorDB(options =>
2323
{
2424
options.Name = DbNames.Client;
25-
options.Version = "1";
25+
options.Version = 1;
2626
options.EncryptionKey = EncryptionKey;
2727
options.StoreSchemas = SchemaHelper.GetAllSchemas(DbNames.Client);
2828
options.DbMigrations = new List<DbMigration>

Magic.IndexedDb/IndexDbManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private IndexedDbManager(DbStore dbStore, IJSObjectReference jsRuntime)
4141

4242
// TODO: make it readonly
4343
public List<StoreSchema> Stores => this._dbStore.StoreSchemas;
44-
public string CurrentVersion => _dbStore.Version;
44+
public int CurrentVersion => _dbStore.Version;
4545
public string DbName => _dbStore.Name;
4646

4747
/// <summary>

Magic.IndexedDb/Models/DbStore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Magic.IndexedDb
99
public class DbStore
1010
{
1111
public string Name { get; set; }
12-
public string Version { get; set; }
12+
public int Version { get; set; }
1313
public string EncryptionKey { get; set; }
1414
public List<StoreSchema> StoreSchemas { get; set; }
1515
public List<DbMigration> DbMigrations { get; set; } = new List<DbMigration>();

0 commit comments

Comments
 (0)