mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
use consistent email property names
This commit is contained in:
parent
0a84395508
commit
28a8777572
3 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ namespace FilterLists.Data.Entities
|
|||
{
|
||||
public class Maintainer : BaseEntity
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string EmailAddress { get; set; }
|
||||
public ICollection<FilterList> FilterLists { get; set; }
|
||||
public string HomeUrl { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class MaintainerTypeConfiguration : BaseEntityTypeConfiguration<Maintaine
|
|||
public override void Configure(EntityTypeBuilder<Maintainer> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("maintainers");
|
||||
entityTypeBuilder.Property(b => b.Email)
|
||||
entityTypeBuilder.Property(b => b.EmailAddress)
|
||||
.HasMaxLength(126);
|
||||
entityTypeBuilder.Property(b => b.HomeUrl)
|
||||
.HasMaxLength(2083);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public static class JsonSampleGenerator
|
|||
{
|
||||
private static JObject DataSample => (JObject) JToken.FromObject(new Maintainer
|
||||
{
|
||||
Email = "john.smith@protonmail.com",
|
||||
EmailAddress = "john.smith@protonmail.com",
|
||||
HomeUrl = "https://johnsmith.com",
|
||||
TwitterHandle = "@johnsmith",
|
||||
Name = "John Smith",
|
||||
|
|
|
|||
Loading…
Reference in a new issue