Click here to Skip to main content
15,920,629 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating a small project using C# - Please Help Pin
Richard MacCutchan3-Feb-14 2:18
mveRichard MacCutchan3-Feb-14 2:18 
GeneralRe: Creating a small project using C# - Please Help Pin
Mohan Subramani3-Feb-14 2:48
Mohan Subramani3-Feb-14 2:48 
JokeRe: Creating a small project using C# - Please Help Pin
Ravi Bhavnani3-Feb-14 6:15
professionalRavi Bhavnani3-Feb-14 6:15 
GeneralIssues in creating SQL Server Database with C# windows Application Pin
Mohan Subramani4-Feb-14 3:15
Mohan Subramani4-Feb-14 3:15 
GeneralRe: Issues in creating SQL Server Database with C# windows Application Pin
Ravi Bhavnani4-Feb-14 6:24
professionalRavi Bhavnani4-Feb-14 6:24 
AnswerRe: Creating a small project using C# - Please Help Pin
John D. Sanders4-Feb-14 9:13
John D. Sanders4-Feb-14 9:13 
QuestionArtificial Neural Network Pin
Member 95388301-Feb-14 23:34
Member 95388301-Feb-14 23:34 
AnswerRe: Artificial Neural Network Pin
Kornfeld Eliyahu Peter2-Feb-14 0:06
professionalKornfeld Eliyahu Peter2-Feb-14 0:06 
GeneralRe: Artificial Neural Network Pin
Member 95388302-Feb-14 0:50
Member 95388302-Feb-14 0:50 
QuestionDiamond Program with few requirements Pin
balaramanN1-Feb-14 19:47
balaramanN1-Feb-14 19:47 
AnswerRe: Diamond Program with few requirements Pin
Mycroft Holmes1-Feb-14 20:20
professionalMycroft Holmes1-Feb-14 20:20 
AnswerRe: Diamond Program with few requirements Pin
Richard MacCutchan1-Feb-14 21:32
mveRichard MacCutchan1-Feb-14 21:32 
Questionproblem in crystal report Pin
Shuaib wasif khan1-Feb-14 10:31
Shuaib wasif khan1-Feb-14 10:31 
AnswerRe: problem in crystal report Pin
Mycroft Holmes1-Feb-14 20:19
professionalMycroft Holmes1-Feb-14 20:19 
AnswerRe: problem in crystal report Pin
John D. Sanders4-Feb-14 9:15
John D. Sanders4-Feb-14 9:15 
QuestionBest practise for using EF Entities Pin
Shady George1-Feb-14 10:13
Shady George1-Feb-14 10:13 
I'm a freelance programmer, and one of the major bugbears with working by myself is that I have no-one to bounce ideas off, so my code becomes very personal, if that's the right word, and I sometimes wonder if I'm doing things the right way. For instance, when I interrogate my database using Linq to Entities I use the following code (to return an instance of the purchase class).

internal static Purchase ReturnPurchaseItem(int PiD)
{
RegulusEntities RG = new RegulusEntities();
Purchase purchase = (from PU in RG.Purchases
where PU.PurchaseID == PiD
select PU).FirstOrDefault();
return purchase;
}

I would be very grateful if you could critique my code and maybe suggest more efficient ways of returning an instance of a class, or using the entity framework for that matter.
(If I've got this in the wrong forum, please forgive me, and transfer me to the right one!).
AnswerRe: Best practise for using EF Entities Pin
Dave Kreskowiak1-Feb-14 13:07
mveDave Kreskowiak1-Feb-14 13:07 
GeneralMessage Closed Pin
2-Feb-14 9:51
cseder2-Feb-14 9:51 
GeneralRe: Best practise for using EF Entities Pin
Dave Kreskowiak2-Feb-14 11:46
mveDave Kreskowiak2-Feb-14 11:46 
RantRe: Best practise for using EF Entities Pin
cseder2-Feb-14 15:19
cseder2-Feb-14 15:19 
GeneralRe: Best practise for using EF Entities Pin
Shady George2-Feb-14 15:50
Shady George2-Feb-14 15:50 
GeneralRe: Best practise for using EF Entities Pin
Shady George2-Feb-14 17:05
Shady George2-Feb-14 17:05 
GeneralRe: Best practise for using EF Entities Pin
Dave Kreskowiak2-Feb-14 18:52
mveDave Kreskowiak2-Feb-14 18:52 
GeneralRe: Best practise for using EF Entities Pin
Shady George4-Feb-14 8:28
Shady George4-Feb-14 8:28 
GeneralRe: Best practise for using EF Entities Pin
Dave Kreskowiak4-Feb-14 10:11
mveDave Kreskowiak4-Feb-14 10:11 

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.