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

C#

 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 2:41
professionalKevin Marois30-Mar-15 2:41 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak30-Mar-15 3:27
mveDave Kreskowiak30-Mar-15 3:27 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 3:29
professionalKevin Marois30-Mar-15 3:29 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak30-Mar-15 3:58
mveDave Kreskowiak30-Mar-15 3:58 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 3:59
professionalKevin Marois30-Mar-15 3:59 
AnswerRe: Install Windows Service Pin
Pete O'Hanlon30-Mar-15 2:42
mvePete O'Hanlon30-Mar-15 2:42 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 2:44
professionalKevin Marois30-Mar-15 2:44 
QuestionDbEntry Pin
Anele Ngqandu29-Mar-15 4:13
Anele Ngqandu29-Mar-15 4:13 
Hi
C#
Student student = context.Students.Find(1);
 student.StudentName = "Anele";
  var success = context.Entry(student).State == EntityState.Modified ? context.SaveChanges() : 0;


DbEntry checks the state of the entity. Now is it legal to check if the entity state has changed before saving the changes to the database or its just no necessary?

Or maybe where exactly can I use the
C#
Entry
in real world solutions?
Act as though it were impossible to fail

AnswerRe: DbEntry Pin
Dave Kreskowiak29-Mar-15 7:48
mveDave Kreskowiak29-Mar-15 7:48 
QuestionSelectednode.text is always null Pin
Member 1070832729-Mar-15 3:36
Member 1070832729-Mar-15 3:36 
QuestionHangMan C# need help! Pin
Munteanu Silviu28-Mar-15 7:21
Munteanu Silviu28-Mar-15 7:21 
AnswerRe: HangMan C# need help! Pin
Sascha Lefèvre28-Mar-15 8:23
professionalSascha Lefèvre28-Mar-15 8:23 
AnswerRe: HangMan C# need help! Pin
Bjørn8-Apr-15 4:24
Bjørn8-Apr-15 4:24 
QuestionPPPoe connection creation in c# Pin
KARFER28-Mar-15 4:00
KARFER28-Mar-15 4:00 
Questionlocalazation simulation Pin
huthiafa27-Mar-15 23:33
huthiafa27-Mar-15 23:33 
GeneralRe: localazation simulation Pin
Richard MacCutchan27-Mar-15 23:57
mveRichard MacCutchan27-Mar-15 23:57 
QuestionGlobal variable in C# Pin
aahamdan27-Mar-15 23:24
aahamdan27-Mar-15 23:24 
AnswerRe: Global variable in C# Pin
OriginalGriff28-Mar-15 0:27
mveOriginalGriff28-Mar-15 0:27 
GeneralRe: Global variable in C# Pin
aahamdan4-Apr-15 4:07
aahamdan4-Apr-15 4:07 
GeneralRe: Global variable in C# Pin
OriginalGriff4-Apr-15 4:26
mveOriginalGriff4-Apr-15 4:26 
AnswerRe: Global variable in C# Pin
Afzaal Ahmad Zeeshan28-Mar-15 17:32
professionalAfzaal Ahmad Zeeshan28-Mar-15 17:32 
GeneralRe: Global variable in C# Pin
aahamdan4-Apr-15 4:06
aahamdan4-Apr-15 4:06 
QuestionMobile agent data gathering in WSNs Pin
huthiafa27-Mar-15 22:25
huthiafa27-Mar-15 22:25 
QuestionEnumeration in C#,Different Input returning Same enumeration Pin
KK Kod27-Mar-15 5:01
KK Kod27-Mar-15 5:01 
AnswerRe: Enumeration in C#,Different Input returning Same enumeration Pin
Sascha Lefèvre27-Mar-15 5:16
professionalSascha Lefèvre27-Mar-15 5:16 

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.