Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
QuestionWindows 7 Files Explorer - New Folder In Tree Pin
fakir4458-Sep-12 22:57
fakir4458-Sep-12 22:57 
AnswerRe: Windows 7 Files Explorer - New Folder In Tree Pin
Eddy Vluggen9-Sep-12 0:29
professionalEddy Vluggen9-Sep-12 0:29 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
fakir4459-Sep-12 5:14
fakir4459-Sep-12 5:14 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
Eddy Vluggen9-Sep-12 5:35
professionalEddy Vluggen9-Sep-12 5:35 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
fakir4459-Sep-12 9:24
fakir4459-Sep-12 9:24 
QuestionIs it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan8-Sep-12 21:52
Mohammad Dayyan8-Sep-12 21:52 
QuestionRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Eddy Vluggen9-Sep-12 0:26
professionalEddy Vluggen9-Sep-12 0:26 
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan9-Sep-12 0:52
Mohammad Dayyan9-Sep-12 0:52 
Well Sniff | :^)
there are some reasons that you could find them with Google.
Eddy Vluggen wrote:
What do you think you will gain from the added patterns that's not there in EF?

my reasons :
With Repository pattern we could hide DbContext(or ObjectContext) in UI layer for UI programmers and the they don't need to work with DbContext directly.
otherwise, for each entity we have to write Update, Delete, Insert, ... methods. So with repository "Don't Repeat Yourself"
Eddy Vluggen wrote:
And why do you want a singleton, and not a simple static class?

Static class is an instance for all, and it has the same position in RAM of system.
but Singleton has a static field and we can have different instances of our class, but we prevent coupling
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Eddy Vluggen9-Sep-12 1:12
professionalEddy Vluggen9-Sep-12 1:12 
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
jschell9-Sep-12 4:24
jschell9-Sep-12 4:24 
GeneralRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan27-Sep-12 2:26
Mohammad Dayyan27-Sep-12 2:26 
QuestionC# scheduled jobs Pin
dcof8-Sep-12 16:46
dcof8-Sep-12 16:46 
AnswerRe: C# scheduled jobs Pin
PIEBALDconsult8-Sep-12 19:08
mvePIEBALDconsult8-Sep-12 19:08 
AnswerRe: C# scheduled jobs Pin
jschell9-Sep-12 4:27
jschell9-Sep-12 4:27 
QuestionC# directory folder levels Pin
dcof8-Sep-12 16:45
dcof8-Sep-12 16:45 
AnswerRe: C# directory folder levels Pin
Eddy Vluggen9-Sep-12 0:23
professionalEddy Vluggen9-Sep-12 0:23 
AnswerRe: C# directory folder levels Pin
jschell9-Sep-12 4:30
jschell9-Sep-12 4:30 
GeneralRe: C# directory folder levels Pin
dcof9-Sep-12 8:49
dcof9-Sep-12 8:49 
GeneralRe: C# directory folder levels Pin
Pete O'Hanlon9-Sep-12 10:05
mvePete O'Hanlon9-Sep-12 10:05 
GeneralRe: C# directory folder levels Pin
dcof9-Sep-12 10:30
dcof9-Sep-12 10:30 
GeneralRe: C# directory folder levels Pin
Pete O'Hanlon9-Sep-12 10:35
mvePete O'Hanlon9-Sep-12 10:35 
AnswerRe: C# directory folder levels Pin
jschell10-Sep-12 8:55
jschell10-Sep-12 8:55 
QuestionC# linq not update table correctly Pin
classy_dog8-Sep-12 15:19
classy_dog8-Sep-12 15:19 
QuestionC# with several proejct folders using linq to sql Pin
classy_dog8-Sep-12 15:14
classy_dog8-Sep-12 15:14 
AnswerRe: C# with several proejct folders using linq to sql Pin
Dave Kreskowiak8-Sep-12 16:58
mveDave Kreskowiak8-Sep-12 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.