namespace BusinessLogic.Entities { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public partial class Office { public Office() { PendingTransactions = new HashSet(); ProcessedTransactions = new HashSet(); Users = new HashSet(); } [Key] [StringLength(2)] public string OfficeCode { get; set; } [Required] [StringLength(50)] public string Name { get; set; } public virtual ICollection PendingTransactions { get; set; } public virtual ICollection ProcessedTransactions { get; set; } public virtual ICollection Users { get; set; } } }