From 040db1648f8c48acf5730aa7093284a6a6b71f37 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 17 Jan 2017 15:20:50 +0100 Subject: [PATCH] =?UTF-8?q?traque=20les=20=C3=A9ditions=20de=20billet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yavsc/Controllers/BlogspotController.cs | 2 +- Yavsc/Migrations/20170117134339_entityTracking.Designer.cs | 1 - Yavsc/Migrations/20170117134339_entityTracking.cs | 1 - Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Yavsc/Controllers/BlogspotController.cs b/Yavsc/Controllers/BlogspotController.cs index 225834d6..dbb7ac13 100644 --- a/Yavsc/Controllers/BlogspotController.cs +++ b/Yavsc/Controllers/BlogspotController.cs @@ -47,7 +47,7 @@ namespace Yavsc.Controllers return UserPosts(id); return View(_context.Blogspot.Include( b => b.Author - ).Where(p => p.Visible || p.AuthorId == uid ).OrderByDescending(p => p.UserCreated) + ).Where(p => p.Visible || p.AuthorId == uid ).OrderByDescending(p => p.DateCreated) .Skip(skip).Take(maxLen)); } diff --git a/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs b/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs index b9baef5b..3edf4a60 100644 --- a/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs +++ b/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs @@ -1,7 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations; using Yavsc.Models; diff --git a/Yavsc/Migrations/20170117134339_entityTracking.cs b/Yavsc/Migrations/20170117134339_entityTracking.cs index a332fa3b..a62323d9 100644 --- a/Yavsc/Migrations/20170117134339_entityTracking.cs +++ b/Yavsc/Migrations/20170117134339_entityTracking.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; namespace Yavsc.Migrations diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs index d37b7a5c..2e02ba6d 100644 --- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,8 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; using Yavsc.Models; namespace Yavsc.Migrations