Releases: drualcman/BlasorIndexedDb
Many fixes and improvements.
- Add method to drop database. Removed static variable to staore al the database model to compare if it's already in use or not because we are using now only the db_name.
- Improvements in havascript info and warns
- Fixed mistake in varialbe from previous version. Fixed issue in javascript when update records. Improvements in the initializing of the database using less memory and faster code.
- Improved deserialization to include fields and caseinsensitive. Update nuget dependencies to last version.
- Add custom convertes to avoid possible issues with timespan, enum boolean and integer from string
- Update CustomJsonIimespanConverter to avoid return exceptions
- Change how to control propertytype in object json converter
- Fixed detect new table name from object properties
- Fixed default database name to get a context class name
- Fixed nulable datetime
- Fixed number with invarian culture because some browsers change number with culture specific
Target all supported NET frameworks
Add function delegate in select and get to search from any property in the model.
Improvements how to load javascript file.
Depreciated UseBlazorIndexedDbContext because is not longer in use with new Javascript management.
Update nugets to last version and target all supported NET Frameworks.
Fixed Browser crash issues
This version fixed a possible browser crush, or looks like crush, when big data is added into a indexed db.
Also improve how to manage the insert and update data into indexed db o avoid open and close db per each transaction.
Also avoid cache issues about javascript updates in when have a new release.
Fixed autoincremental when Add register into the store. Reported issue #1.
BlazorIndexedDb
Manage indexedDb from c# with Blazor. Simple way to interact with IndexedDB similar how you can do with EntityFramework
Current features
Create StoreContext<TStore>
from abstract class. Allow multiple StoreContext but dabase name should be different names. StoreSet
per each model you need into a database. Set PrimaKey in the model. Using convention if have property Id or TableNameId or IdTableName then this is used like PrimaryKey AutoIncremental (only if it's a number is autoincremental) CRUD from StoreSet Select all or one by PrimaryKey or property from StoreSet
Clean all data in a storeSet