26 lines
762 B
C#
26 lines
762 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AdvertisingProfitControlData
|
|
{
|
|
public class Supplier
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
|
public Supplier()
|
|
{
|
|
Invoices = new HashSet<Invoice>();
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
[StringLength(256)]
|
|
public string Name { get; set; }
|
|
|
|
[StringLength(256)]
|
|
public string Description { get; set; }
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
|
public virtual ICollection<Invoice> Invoices { get; set; }
|
|
}
|
|
}
|