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

Activities of "trendline"

In my application, there will be large data be queried, sometimes it will timeout to connect database, where I can set timeout for EF core?

I tried add below property in EF Core constructor but it seems it doesn't work, and when using EF migration update database, it will failed because this change.

public MyDbContext(DbContextOptions<MyDbContext> options)
            : base(options)
        {
            this.Database.SetCommandTimeout(180);
        }

Can I set it in connection string? Hope you can give me some guides.

Great to see it already be implemented, as V2.1 with lots of changes, when it will be released?

Got it. thanks, look forward to lazy loading released with EF Core 2.0.

Thanks, @ismcagdas, I found this extension, It seems the "reference" API not in this extension, would you extend it in the future?

Does GetAllIncluding method implemented via eager loading?

Explicit Loading support was introduced in EF Core 1.1.0. With below API

using (var context = new BloggingContext()) 
{
    var blog = context.Blogs
        .Single(b => b.BlogId == 1);

    context.Entry(blog)
        .Collection(b => b.Posts)
        .Load();

    context.Entry(blog)
        .Reference(b => b.Owner)
        .Load();
}

As it is using DbContext, is there a way that could use them in IRepository?

It really is strange, I tried create new database it still not work on IE, firefox and chrome which installed browsers on my computer. But I tried on other computers it works fine.

Hi, ismcagdas

Source code as attachment already sent to you, please help resolve the issue, thanks in advance.

It is really strange, who can give me some advices to fix this issue?

Any suggestion for this issue? As cannot see localized string on the page, it blocked the progress.

It is not like you said, it seems switch language failed for sidebar zone.

See attached screenshot as below:

Showing 61 to 70 of 154 entries