예제 #1
0
        private static void AddGenders()
        {
            var male = new GenderType();
             male.Description = "Male";
             var female = new GenderType();
             female.Description = "Female";

             _genderRepo.Save(male);
             _genderRepo.Save(female);
        }
예제 #2
0
파일: User.cs 프로젝트: a416461/earlybirds
 //public IEnumerable<Ticket> Tickets
 //{
 //    get
 //    {
 //        return Context.Tickets.Where(i => i.AssignedToUserId == this.Id);
 //    }
 //}
 public User(string name, GenderType gender)
 {
     this.Name = name;
     this.Gender = gender;
     this.RegistrationDate = DateTime.Now;
 }