Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to insert users information to database using entity framework. i' am using CreateUserWizard.And event of this control as follow.
C#
protected void RegisterUser_CreatedUser(object sender, EventArgs e)
        {
            Database1Entities db = new Database1Entities();
            Kullanıcılar kullanıcı = new Kullanıcılar();
            kullanıcı.AdSoyad = RegisterUser.UserName;
            kullanıcı.Şifre = RegisterUser.Password;
            db.Kullanıcılar.Add(kullanıcı);

            db.SaveChanges();


            FormsAuthentication.SetAuthCookie(RegisterUser.UserName, createPersistentCookie: false);

            string continueUrl = RegisterUser.ContinueDestinationPageUrl;
            if (!OpenAuth.IsLocalUrl(continueUrl))
            {
                continueUrl = "~/";
            }
            Response.Redirect(continueUrl);

           
            }


but when i check the Entity to see user information i see blank columns.how can solve this problem?
Posted
Comments
DiponRoy 23-Jul-14 16:13pm    
are you using entity framework code first?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900