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; }