Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "digitalcontrol"

Hello @ismcagdas, to make myself clear, I can make custom accordian functionality but I would like to use Metronic theme components since they exist already and since Metronic is part of ASP.NET Zero framework. I am aware that I can install and use opensource libraries but my question was strictly related to Metronic theme components.

Hello @ismcagdas my question was more generic not only accordion related, what about all other Metronic theme components?

@<span class="colour" style="color: rgb(0, 0, 0);">ismcagdas  just to remind you for this ticket.</span>

Hi @ismcagdas it is latest 7.0.0.

How can we use Metronic components in Zero framework like these accordions: http://keenthemes.com/preview/metronic/theme/admin_1/ui_tabs_accordions_navs.html Except for design I would like to have functionality e.g.  I get the accordion design but I can't trigger collapse/expand functionalities.

I want to seed database on app start only in production mode. What is the best way to do that? I injected IHostingEnvironment in RIMIKSXEntityFrameworkCoreModule and added code

public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(RIMIKSXEntityFrameworkCoreModule).GetAssembly());

// ignore seeding in development
if (_env.IsDevelopment())
{
    SkipDbSeed = true;
}

}

and it works fine. But now Migrator project and Unit tests don't work, because of that dependency. This is the error message: Can't create component 'RIMIKSX.EntityFrameworkCore.RIMIKSXEntityFrameworkCoreModule' as it has dependencies to be satisfied.

Hi,

Actually, this was not a solution but I found what was my problem. I was using data annotation in my models e.g. [Column(TypeName = "NVARCHAR(MAX)")] but this was unnecessary since EF will set it to MAX by default. So this cause problem with SQLite.

My unit tests fails because I have nvarchar(max) in models and I am getting following error: Message: Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'near "MAX": syntax error'.

So, SQLLite do not support nvarchar(max), which solution you prefer in this case?

Yes, it works thank you!!

I've tried to call that method on a few places

- in Startup.cs Configure method

using (var scope = app.ApplicationServices.CreateScope()) { scope.ServiceProvider.GetService&lt;DatabaseUpdateHelper>().Update(); }

- in RIMIKSXEntityFrameworkCoreModule.cs in PostInitialize using (var scope = IocManager.CreateScope()) { scope.Resolve&lt;DatabaseUpdateHelper>().Update(); }

- I tried in PreInitialize and Initialize but didn't work either

RIMIKSX.EntityFrameworkCore.DatabaseUpdateHelper is helper class with one method Update which calls context.Database.Migrate()

Showing 31 to 40 of 58 entries