roadie/Roadie.Api.Library/Data/CreditCategory.cs
2019-11-28 11:38:26 -06:00

29 lines
No EOL
758 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("creditCategory")]
public partial class CreditCategory : NamedEntityBase
{
[Column("description")]
[MaxLength(4000)]
public string Description { get; set; }
[MaxLength(100)]
[Column("name")]
public override string Name { get; set; }
[NotMapped]
public override string SortName { get; set; }
[InverseProperty("CreditCategory")]
public virtual ICollection<Credit> Credits { get; set; }
public CreditCategory()
{
Credits = new HashSet<Credit>();
}
}
}