Example #1
0
 /// <summary>
 /// 用于向 blog_userprofile EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToblog_userprofile(blog_userprofile blog_userprofile)
 {
     base.AddObject("blog_userprofile", blog_userprofile);
 }
Example #2
0
        private void AddUserProfile(UserInfoModel user)
        {
            var dbuserProfile = new blog_userprofile
            {
                userid = user.UserId,
                gender = user.Gender,
                nickname = user.NickName,
                signature = user.Signature,
                intro = user.Intro,
                birth = user.Birth,
                location = user.Location,
                website = user.Website,
                qq = user.Qq,
                sina = user.Sina,
                facebook = user.Facebook,
                twitter = user.Twitter,
                medals = user.Medals,
                phone = user.Phone,
                email = user.Email,
                isSendEmail = user.IsSendEmail
            };

            _entity.blog_userprofile.AddObject(dbuserProfile);
            _entity.SaveChanges();
        }
Example #3
0
 /// <summary>
 /// 创建新的 blog_userprofile 对象。
 /// </summary>
 /// <param name="userid">userid 属性的初始值。</param>
 /// <param name="isSendEmail">isSendEmail 属性的初始值。</param>
 public static blog_userprofile Createblog_userprofile(global::System.Int64 userid, global::System.Boolean isSendEmail)
 {
     blog_userprofile blog_userprofile = new blog_userprofile();
     blog_userprofile.userid = userid;
     blog_userprofile.isSendEmail = isSendEmail;
     return blog_userprofile;
 }