8:14 PM 0 0
New version released 1 6 32

New version released 1 6 32

  Sergi |  March 222023

New helper for simplify how to add the database management

We add a DependencyContainer class with a extension methods to help the user of the library to add the database context into your Blazor Project. Here is the example for the new version when you are building the app.

using BlazorIndexedDb;

namespace BlazorYoutubePlayerViewer
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add< App >("#app");

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.AddBlazorIndexedDbContext<[context class name]>();

var app = builder.Build();
await app.UseBlazorIndexedDbContext<[context class name]>();
await app.RunAsync();
}
}
}

Bugs fixed

1. Update record: From JAVASCRIPT file we fixed a issue relative how detect the keypath. Please ensure must be clean cache to get the correct file.
2. Update record: Also from C# we fixed a small bug when the keypath is autoincement is ignoring the property so is not send to JAVASCRIPT for can select the correct register to update.

0 Guest reviews

 
 
 

File