refactoring
This commit is contained in:
parent
7ccf20e25b
commit
c06560a59d
2 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ namespace Yavsc.Models
|
||||||
builder.Entity<CircleMember>().HasKey(c=> new { MemberId = c.MemberId, CircleId = c.CircleId });
|
builder.Entity<CircleMember>().HasKey(c=> new { MemberId = c.MemberId, CircleId = c.CircleId });
|
||||||
builder.Entity<DimissClicked>().HasKey(c=>new { uid = c.UserId, notid = c.NotificationId});
|
builder.Entity<DimissClicked>().HasKey(c=>new { uid = c.UserId, notid = c.NotificationId});
|
||||||
builder.Entity<HairTaintInstance>().HasKey(ti=>new { ti.TaintId, ti.PrestationId } );
|
builder.Entity<HairTaintInstance>().HasKey(ti=>new { ti.TaintId, ti.PrestationId } );
|
||||||
builder.Entity<Link>().HasKey(l=>new { l.HRef, l.Method });
|
builder.Entity<HyperLink>().HasKey(l=>new { l.HRef, l.Method });
|
||||||
|
|
||||||
foreach (var et in builder.Model.GetEntityTypes()) {
|
foreach (var et in builder.Model.GetEntityTypes()) {
|
||||||
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
|
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
|
||||||
|
|
@ -311,6 +311,6 @@ namespace Yavsc.Models
|
||||||
|
|
||||||
public DbSet<PayPalPayment> PayPalPayments { get; set; }
|
public DbSet<PayPalPayment> PayPalPayments { get; set; }
|
||||||
|
|
||||||
public DbSet<Link> Links { get; set; }
|
public DbSet<HyperLink> Links { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Yavsc.Models.Relationship
|
namespace Yavsc.Models.Relationship
|
||||||
{
|
{
|
||||||
public class Link
|
public class HyperLink
|
||||||
{
|
{
|
||||||
[Display(Name="Hyper référence")]
|
[Display(Name="Hyper référence")]
|
||||||
public string HRef { get; set; }
|
public string HRef { get; set; }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue