예제 #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRazorPages();

            services.AddServerSideBlazor();

            services.AddHttpClient();

            services.AddIndexedDbDatabase <GridColumnDataIndexedDb>(options =>
            {
                options.UseDatabase(GetGridColumnDatabaseModel());
            });

            //var model = new TableFieldDatabase();
            //services.AddIndexedDbDatabase<GridColumnDataIndexedDb>(options =>
            //{
            //    options.UseDatabase(model);
            //});

            var model1 = new SecurityDatabase();

            services.AddIndexedDbDatabase <SecuritySuiteDataIndexedDb>(options =>
            {
                options.UseDatabase(model1);
            });
        }
예제 #2
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRazorPages();

            services.AddServerSideBlazor();

            services.AddHttpClient();

            services.AddIndexedDbDatabase <GridColumnDataIndexedDb>(options =>
            {
                options.UseDatabase(GetGridColumnDatabaseModel());
            });

            services.AddIndexedDbDatabase <GridColumnDataIndexedDb2>(options =>
            {
                var indexedDbDatabaseModel = GetGridColumnDatabaseModelAttributeBased();

                options.UseDatabase(indexedDbDatabaseModel);
            });

            var model1 = new SecurityDatabase();

            services.AddIndexedDbDatabase <SecuritySuiteDataIndexedDb>(options =>
            {
                options.UseDatabase(model1);
            });

            services.AddIndexedDbDatabase <DataRawDbDataIndexedDb>(options =>
            {
                options.UseDatabase(GetDataRawDatabaseModel());
            });
        }