コード例 #1
0
        public void Create(UserSet_Alumni _alumni)
        {
            using (var db = new osu2008Entities1())
            {
                var alumni = _alumni;

                db.UserSet_Alumni.Add(_alumni);
                db.SaveChanges();
            }
        }
コード例 #2
0
ファイル: AlumniModel.cs プロジェクト: kstaden/Alumn-Labb2
 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;
 }
コード例 #3
0
 public void Update(UserSet_Alumni _alumni)
 {
     throw new NotImplementedException();
 }