Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 789 Bytes
namespace DataService
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("Person")]
public partial class PersonEntity
{
[Key]
[Required]
public int PersonId { get; set; }
[Required]
[ForeignKey("Company")]
public int CompanyId { get; set; }
[Required]
[StringLength(50)]
public string FirstName { get; set; }
[Required]
[StringLength(100)]
public string LastName { get; set; }
public virtual CompanyEntity Company { get; set; }
// public virtual ICollection<CompanyEntity> Company { get; set; }
}
}