Skip to content

Commit

Permalink
released new version
Browse files Browse the repository at this point in the history
  • Loading branch information
drualcman committed Feb 18, 2024
1 parent e8db724 commit 0ee531a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 53 deletions.
100 changes: 52 additions & 48 deletions BlasorIndexedDb/BlazorIndexedDb.csproj
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.6.33</Version>
<Authors>Sergi Ortiz Gomez</Authors>
<Company>DrUalcman</Company>
<Description>Manage IndexedDb from Blazor WebAssembly applications. Create a StoreDbContext similar how is working in EF. Please report any bug or changes you need using our contact form in the web site. Thanks.</Description>
<Copyright>Free</Copyright>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageTags>webassembly, blazor, indexedDb, interop, javascript, database</PackageTags>
<PackageReleaseNotes>Fixed crush browser if add big data. Avoid possible cache issue with update nuget about Javascrip file dependencies.</PackageReleaseNotes>
<RepositoryUrl>https://github.com/drualcman/BlasorIndexedDb</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageId>DrUalcman-BlazorIndexedDb</PackageId>
<Product>BlazorIndexedDb</Product>
<PackageProjectUrl>https://blazorindexdb.community-mall.com/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<AssemblyName>DrUalcman-BlazorIndexedDb</AssemblyName>
<RootNamespace>BlazorIndexedDb</RootNamespace>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AnalysisLevel>6.0</AnalysisLevel>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<ErrorReport>send</ErrorReport>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Nullable>disable</Nullable>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.6.35</Version>
<Authors>Sergi Ortiz Gomez</Authors>
<Company>DrUalcman</Company>
<Description>Manage IndexedDb from Blazor WebAssembly applications. Create a StoreDbContext similar how is working in EF. Please report any bug or changes you need using our contact form in the web site. Thanks.</Description>
<Copyright>Free</Copyright>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageTags>webassembly, blazor, indexedDb, interop, javascript, database</PackageTags>
<PackageReleaseNotes>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.</PackageReleaseNotes>
<RepositoryUrl>https://github.com/drualcman/BlasorIndexedDb</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageId>DrUalcman-BlazorIndexedDb</PackageId>
<Product>BlazorIndexedDb</Product>
<PackageProjectUrl>https://blazorindexdb.community-mall.com/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<AssemblyName>DrUalcman-BlazorIndexedDb</AssemblyName>
<RootNamespace>BlazorIndexedDb</RootNamespace>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AnalysisLevel>6.0</AnalysisLevel>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<ErrorReport>send</ErrorReport>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Nullable>disable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>C:\DrUalcman\BlasorIndexedDb\BlasorIndexedDb\BlazorIndexedDb.xml</DocumentationFile>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>C:\DrUalcman\BlasorIndexedDb\BlasorIndexedDb\BlazorIndexedDb.xml</DocumentationFile>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>


<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.15" />
</ItemGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="License.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.27" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.27" Condition="'$(TargetFramework)' == 'net6.0'"/>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.16" Condition="'$(TargetFramework)' == 'net7.0'" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.16" Condition="'$(TargetFramework)' == 'net7.0'"/>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.2" Condition="'$(TargetFramework)' == 'net8.0'"/>
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="License.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions BlasorIndexedDb/DependencyContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static WebAssemblyHostBuilder AddBlazorIndexedDbContext<TContext>(this We
/// <typeparam name="TContext"></typeparam>
/// <param name="app"></param>
/// <returns></returns>
[Obsolete("Not longer in use.")]
public static async Task<WebAssemblyHost> UseBlazorIndexedDbContext<TContext>(this WebAssemblyHost app) where TContext : StoreContext<TContext>
{
StoreContext<TContext> context = app.Services.GetRequiredService<TContext>();
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,10 @@ public class Program
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
//INJECT THE DBContext
//INJECT THE DBContext or use your implementation
builder.AddBlazorIndexedDbContext<DBContext>();
var app = builder.Build();
//USE THE CONTEXT, if you are using more than one CONTEXT repeat per each context you are using
await app.UseBlazorIndexedDbContext<DBContext>();
await app.RunAsync();
}
}
Expand Down

0 comments on commit 0ee531a

Please sign in to comment.