HopelessDev's Profile
Reputation: 4
Apprentice
- Group:
- Active Members
- Active Posts:
- 136 (0.48 per day)
- Joined:
- 10-August 12
- Profile Views:
- 1,024
- Last Active:
Feb 22 2013 05:12 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
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(); -
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. -
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. -
In Topic: metro app passing value to pages
Posted 28 Nov 2012
SuspensionManagerException was unhandled by user code -
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.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
HopelessDev has no profile comments yet. Why not say hello?