Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
AnswerRe: Questions For Entity Framework Gurus Pin
Ed Hill _5_9-Aug-12 22:12
Ed Hill _5_9-Aug-12 22:12 
Am no expert here but my general approach is that you create a context in a using block per action you need to perform. For example Adding an Order item to a database create a single context, add the order and order items using that context then commit the changes. This means that if you action has one part that fails then none of it will get committed, and reduces the overhead of creating the context to one per action the user takes not creating one per item that needs adding to the database.

I have also use EF in a service and it performs well enough for my needs, if it speeds up your development and performs well enough then why not use it.
AnswerRe: Questions For Entity Framework Gurus Pin
Pete O'Hanlon9-Aug-12 22:29
mvePete O'Hanlon9-Aug-12 22:29 
QuestionChange Buttonfield image dynamically Pin
Alagiri.periyasamy@merrillcorp.com9-Aug-12 4:41
Alagiri.periyasamy@merrillcorp.com9-Aug-12 4:41 
AnswerRe: Change Buttonfield image dynamically PinPopular
Pete O'Hanlon9-Aug-12 5:27
mvePete O'Hanlon9-Aug-12 5:27 
QuestionThe configuration section cannot contain a CDATA or text element. Pin
Alagiri.periyasamy@merrillcorp.com9-Aug-12 1:23
Alagiri.periyasamy@merrillcorp.com9-Aug-12 1:23 
AnswerRe: The configuration section cannot contain a CDATA or text element. Pin
Eddy Vluggen9-Aug-12 1:26
professionalEddy Vluggen9-Aug-12 1:26 
AnswerRe: The configuration section cannot contain a CDATA or text element. Pin
Peter_in_27809-Aug-12 1:29
professionalPeter_in_27809-Aug-12 1:29 
QuestionA question about closing socket Pin
tiwal8-Aug-12 23:55
tiwal8-Aug-12 23:55 
AnswerRe: A question about closing socket Pin
Philip Stuyck9-Aug-12 11:24
Philip Stuyck9-Aug-12 11:24 
GeneralRe: A question about closing socket Pin
tiwal9-Aug-12 22:56
tiwal9-Aug-12 22:56 
QuestionHow to write Events in Asp .Net Pin
Member 84809808-Aug-12 22:37
Member 84809808-Aug-12 22:37 
AnswerRe: How to write Events in Asp .Net Pin
Ed Hill _5_8-Aug-12 23:09
Ed Hill _5_8-Aug-12 23:09 
AnswerMessage Closed Pin
8-Aug-12 23:32
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:32 
SuggestionRe: How to write Events in Asp .Net Pin
Shameel8-Aug-12 23:54
professionalShameel8-Aug-12 23:54 
AnswerRe: How to write Events in Asp .Net Pin
BobJanova9-Aug-12 2:13
BobJanova9-Aug-12 2:13 
GeneralRe: How to write Events in Asp .Net Pin
Member 84809809-Aug-12 18:42
Member 84809809-Aug-12 18:42 
Generalres://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:09
mvePete O'Hanlon8-Aug-12 23:09 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:31
mvePete O'Hanlon8-Aug-12 23:31 
GeneralConvert Word Doc to Byte Pin
ASPnoob8-Aug-12 19:46
ASPnoob8-Aug-12 19:46 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon8-Aug-12 20:16
mvePete O'Hanlon8-Aug-12 20:16 
GeneralRe: Convert Word Doc to Byte Pin
ASPnoob8-Aug-12 21:18
ASPnoob8-Aug-12 21:18 
GeneralRe: Convert Word Doc to Byte Pin
Pete O'Hanlon8-Aug-12 22:40
mvePete O'Hanlon8-Aug-12 22:40 
GeneralRe: Convert Word Doc to Byte Pin
ASPnoob9-Aug-12 0:45
ASPnoob9-Aug-12 0:45 

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.