HopelessDev's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
136 (0.16 per day)
Joined:
10-August 12
Profile Views:
16,220
Last Active:
User is offline Feb 22 2013 05:12 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   HopelessDev has not set their status

Posts I've Made

  1. In Topic: Saving to Database

    Posted 16 Feb 2013

    If your StudentModel has the same properties as your Student entity class, you could map their property values.

    var student = new Student 
    {
      StudentId = studentModel.ID,
      Name = studentModel.Name,
      Address = studentModel.Address
    }
    
    context.Students.Add(student);
    context.SaveChanges();
    
    

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

HopelessDev hasn't added any friends yet.

Comments

HopelessDev has no profile comments yet. Why not say hello?