lordfong / WebDemo

pet project
0 stars 2 forks source link

Repository doesn't work correctly #19

Open smiech opened 9 years ago

smiech commented 9 years ago

Try to test a piece of code like: var repository = new JapaneseWordRepository(); repository.Add(...); repository.Add(...);

and then think :)

lordfong commented 9 years ago

....... Isn't that repository class from the other project?

lordfong commented 9 years ago

hmmm, cleaning up the code, I guess this is why devs should commit clean code :p

smiech commented 9 years ago

The other repository has the same 'feature' :)

+1

lordfong commented 9 years ago

XD ....., But I never encountered a problem? The DB is always updated with a new record. Oh, you mean a double add method, I will have to test that.