public class Company { [Required] [Key] public string CompanyCode { get; set; } public string CompanyName { get; set; } public CompanyTypes CompanyType { get; set; } public string CompanyTaxAdministration { get; set; } public string CompanyTaxNumber { get; set; } public string CompanyWebAdress { get; set; } public string CompanyMailAdress { get; set; } public byte[] CompanyLogo { get; set; } public virtual ICollection<CompanyAddress> CompanyAddresses { get; set; } public Company() { CompanyAddresses = new HashSet<CompanyAddress>(); } }
public class Company { public string CompanyCode { get; set; } public string CompanyName { get; set; } public CompanyTypes CompanyType { get; et; } public string CompanyTaxAdministration { get; set; } public string CompanyTaxNumber { get; set; } public string CompanyWebAdress { get; set; } public string CompanyMailAdress { get; set; } public byte[] CompanyLogo { get; set; } public Company(string cCode, string cName, CompanyTypes cType, string taxAdmin, string cTaxNum, string web, string mail, byte[] logo) { CompanyCode = cCode; CompanyName = cName; CompanyType = cType; CompanyTaxAdministration = taxAdmin; CompanyTaxNumber = cTaxNum; CompanyWebAdress = web; CompanyMailAdress = mail; CompanyLogo = logo; } }