public void Create(UserSet_Alumni _alumni) { using (var db = new osu2008Entities1()) { var alumni = _alumni; db.UserSet_Alumni.Add(_alumni); db.SaveChanges(); } }
public AlumniModel(UserSet_Alumni alumni) { this.UserId = alumni.UserId; //this.AdminRights = alumni.AdminRights; //this.Password = alumni.Password; //this.SocialSecurityNumber = alumni.SocialSecurityNumber; //this.FirstName = alumni.FirstName; //this.LastName = alumni.LastName; //this.PhoneNumber = alumni.PhoneNumber; //this.Email = alumni.Email; //this.Occupation = alumni.Occupation; //this.AlumniAddress = alumni.AlumniAddress; //this.ClassYear = alumni.ClassYear; this.OccupationOccupationId = alumni.OccupationOccupationId; this.AlumniAddressAlumniAddressId = alumni.AlumniAddressAlumniAddressId; this.ClassYearClassYearId = alumni.ClassYearClassYearId; this.Credits = alumni.Credits; this.HasDegree = alumni.HasDegree; }
public void Update(UserSet_Alumni _alumni) { throw new NotImplementedException(); }