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

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
136 (0.22 per day)
Joined:
10-August 12
Profile Views:
15,891
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();
    
    
  2. In Topic: Console application lottery game

    Posted 17 Dec 2012

    The rows value are repeating because you have your print statement inside the for loop. So what's happening is that the randomized value for a specific index is printed each iteration. Placing the print statement outside the for loop will fix this.

    Also, I suggest placing the if statement that checks if all the randomized numbers are equal to the input numbers INSIDE the for loop then place a break statement at the end so it would break out of the loop if true.
  3. In Topic: metro app passing value to pages

    Posted 28 Nov 2012

    It says SuspensionManager Failed. How do I exactly view the stack trace? But anyway other than that, my app is running how it should. It's saving/loading state properly.
  4. In Topic: metro app passing value to pages

    Posted 28 Nov 2012

    SuspensionManagerException was unhandled by user code
  5. In Topic: NullReferenceException

    Posted 12 Oct 2012

    Wow. Thank you so much for the help! It's working now!

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?