Пример #1
0
        public void AddUserInfo(UserInfo info)
        {
            User_info temp = new User_info();

            temp.Interest = info.Interest;
            temp.Age      = info.Age;
            //temp.Avatar = info.Avatar;
            temp.Birthdate    = info.BirthDate;
            temp.City         = info.City;
            temp.Localization = info.Localization;
            temp.Name         = info.Name;
            temp.Sex          = info.Sex;
            temp.Surename     = info.Surname;



            using (var db = new DataClasses1DataContext())
            {
                db.User_infos.InsertOnSubmit(temp);
                db.SubmitChanges();
            }
        }
Пример #2
0
 partial void UpdateUser_info(User_info instance);
Пример #3
0
 partial void DeleteUser_info(User_info instance);
Пример #4
0
 partial void InsertUser_info(User_info instance);