From 565b756280df78f6f76f7bd3452cf79f2569fca0 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 27 Oct 2017 17:31:52 -0500 Subject: [PATCH] begin adding many-to-many between langs and lists --- src/FilterLists.Data/Entities/FilterList.cs | 2 +- src/FilterLists.Data/Entities/Language.cs | 5 ++++- src/FilterLists.Data/Entities/Maintainer.cs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/FilterLists.Data/Entities/FilterList.cs b/src/FilterLists.Data/Entities/FilterList.cs index 6c9f49fb4..3828f1076 100644 --- a/src/FilterLists.Data/Entities/FilterList.cs +++ b/src/FilterLists.Data/Entities/FilterList.cs @@ -11,7 +11,7 @@ public class FilterList : BaseEntity public string ForumUrl { get; set; } public string HomeUrl { get; set; } public string IssuesUrl { get; set; } - public List Languages { get; set; } + public ICollection Languages { get; set; } public int MaintainerId { get; set; } public string Name { get; set; } public string ViewUrl { get; set; } diff --git a/src/FilterLists.Data/Entities/Language.cs b/src/FilterLists.Data/Entities/Language.cs index 686fc0679..974ccdaed 100644 --- a/src/FilterLists.Data/Entities/Language.cs +++ b/src/FilterLists.Data/Entities/Language.cs @@ -1,7 +1,10 @@ -namespace FilterLists.Data.Entities +using System.Collections.Generic; + +namespace FilterLists.Data.Entities { public class Language : BaseEntity { + public ICollection FilterLists { get; set; } public string Iso6391 { get; set; } public string Iso6392 { get; set; } public string Iso6392B { get; set; } diff --git a/src/FilterLists.Data/Entities/Maintainer.cs b/src/FilterLists.Data/Entities/Maintainer.cs index 8da7bf417..571adf4a5 100644 --- a/src/FilterLists.Data/Entities/Maintainer.cs +++ b/src/FilterLists.Data/Entities/Maintainer.cs @@ -5,7 +5,7 @@ namespace FilterLists.Data.Entities public class Maintainer : BaseEntity { public string Email { get; set; } - public List FilterLists { get; set; } + public ICollection FilterLists { get; set; } public string HomeUrl { get; set; } public string Name { get; set; } public string TwitterHandle { get; set; }