2,158 reputation
21029
bio website kristofclaes.be
location Belgium
age 31
visits member for 3 years, 11 months
seen yesterday

Develops for the web, enjoys ASP.NET MVC, intrigued by Ruby (on Rails) and node.js, amateur photographer, plays a bit of guitar, atheist.


Aug
19
answered Generic Repositories with DI & Data Intensive Controllers
Jul
17
awarded  Good Answer
Jul
2
awarded  Curious
Mar
27
awarded  Famous Question
Jan
10
awarded  Notable Question
Dec
2
awarded  Popular Question
Nov
26
awarded  Nice Answer
Nov
26
revised Returning an IQueryable from an IRepository
The URL of Mark's blog post had changed.
Nov
8
awarded  Yearling
Apr
4
accepted Is there a better way to model a many-to-many relationship on the same table with Entity Framework?
Apr
4
comment Is there a better way to model a many-to-many relationship on the same table with Entity Framework?
Thanks. I've updated my question to include the solution based on your answer.
Apr
4
revised Is there a better way to model a many-to-many relationship on the same table with Entity Framework?
Added solution
Apr
3
comment Is there a better way to model a many-to-many relationship on the same table with Entity Framework?
I know what the table in the database should look like, but it still needs to be mapped through Entity Framework somehow. But if I understand you correctly, you say that when I want to link Product 1 to Product 2, I should insert two records? { 1, 2 } and { 2, 1 }?
Apr
3
asked Is there a better way to model a many-to-many relationship on the same table with Entity Framework?
Feb
25
awarded  Good Question
Feb
24
awarded  Popular Question
Feb
24
accepted How should you TDD a Yahtzee game?
Feb
7
comment Helper static methods in TDD
@user960567 : Instantiating a class like that is really not expensive. Take a look at this blogpost: ayende.com/blog/4811/performance-numbers-in-the-pub - 7,715,305 instances created in one second.
Feb
7
comment Write tests for unit tests in TDD?
@MichaelBorgwardt : Maybe you can pass the roll-value to the Assert? Like Assert.IsTrue(sut.IsFullHouse(roll), roll.ToString()); with NUnit. This way you know what values caused the test to fail.
Feb
7
comment Write tests for unit tests in TDD?
I believe tallseth's motivation for randomizing the values is to test multiple valid and invalid combinations. After a while you have tested [1,1,2,2,2], [1,2,2,2,1], [1,1,3,3,3], [1,1,4,4,4], ..., [5,5,5,6,6].