From 0794df083f47666c13adab0778f12558b7ddf05e Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 1 Jun 2017 12:02:24 +0200 Subject: [PATCH] refactoring --- Yavsc/Models/ApplicationDbContext.cs | 4 ++-- Yavsc/Models/Relationship/{Link.cs => HyperLink.cs} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Yavsc/Models/Relationship/{Link.cs => HyperLink.cs} (94%) diff --git a/Yavsc/Models/ApplicationDbContext.cs b/Yavsc/Models/ApplicationDbContext.cs index 375a28ee..9b459e67 100644 --- a/Yavsc/Models/ApplicationDbContext.cs +++ b/Yavsc/Models/ApplicationDbContext.cs @@ -50,7 +50,7 @@ namespace Yavsc.Models builder.Entity().HasKey(c=> new { MemberId = c.MemberId, CircleId = c.CircleId }); builder.Entity().HasKey(c=>new { uid = c.UserId, notid = c.NotificationId}); builder.Entity().HasKey(ti=>new { ti.TaintId, ti.PrestationId } ); - builder.Entity().HasKey(l=>new { l.HRef, l.Method }); + builder.Entity().HasKey(l=>new { l.HRef, l.Method }); foreach (var et in builder.Model.GetEntityTypes()) { if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null) @@ -311,6 +311,6 @@ namespace Yavsc.Models public DbSet PayPalPayments { get; set; } - public DbSet Links { get; set; } + public DbSet Links { get; set; } } } diff --git a/Yavsc/Models/Relationship/Link.cs b/Yavsc/Models/Relationship/HyperLink.cs similarity index 94% rename from Yavsc/Models/Relationship/Link.cs rename to Yavsc/Models/Relationship/HyperLink.cs index 6c8c27f7..fe74674e 100644 --- a/Yavsc/Models/Relationship/Link.cs +++ b/Yavsc/Models/Relationship/HyperLink.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Relationship { - public class Link + public class HyperLink { [Display(Name="Hyper référence")] public string HRef { get; set; }