It seems to cover the terrible idea that is repositories on EF. He probably has a model-first database with generated partial entities that he's using.
To finish off, all I'm saying is that I think repositories on top of EF are bad. Many good developers, thankfully, have the same opinion. There are plenty of examples of repositories and UoW abstractions though, and generally either way will work. UoW is easier to reason about though, IMHO, hence it has my preference. Either way, learning both is not bad!
@JohanLarsson - I think he alienates users. But I just didn't want the post to get sidetracked by a conversation about chat if I link to it.
I think the invite was fine.
@RoelvanUden - I use a repo on my ef context because I often want to change the entire context's configuration, or take advantage of an async approach, and didn't want to have to recreate that code everywhere.
@Pheonixblade9 - He alludes to it, but doesn't actually mention it specifically.
ABSOLUTELY agree with you phoenix, I live in africa and ppl have a bad vision in WP, they think it's a trashy brand that can't do anything at all. it's so underrated
If a question is a simple question, then it can garner downvotes, close votes, and be deleted. Perhaps it enters the new triage queue. I think that is appropriate.
However, in one of the larger posts on this topic, Can we prevent some of the low-quality questions from entering our system?, what ...
var ints = Enumerable.Range(0, count).Concat(Enumerable.Repeat(-1, 5)).ToList();
for (int i = 0; i < ints.Count; i++)
{
var value = ints[i];
if (value == -1)
{
break;
}
Console.WriteLine(value);
ints.RemoveAt(ints.Count - 5);
}
Any way to get the scope/context information from within a task when declared as a lambda? var t = Task.Factory.StartNew(() => { //Can I get task ID here?});
@TravisJ See, I'm not entirely crazy :) "Reading between the lines, you're not voting based on the poster. You're voting on the fact/hypothesis that the answer is "not useful" because it encourages low quality content on the site. - Mystical"