Click here to Skip to main content
16,014,677 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get back in the Soapbox Kyle! Pin
Pete O'Hanlon4-Mar-08 11:10
mvePete O'Hanlon4-Mar-08 11:10 
GeneralRe: Get back in the Soapbox Kyle! Pin
Gareth H4-Mar-08 11:14
Gareth H4-Mar-08 11:14 
GeneralRe: Get back in the Soapbox Kyle! Pin
led mike4-Mar-08 11:17
led mike4-Mar-08 11:17 
GeneralRe: Get back in the Soapbox Kyle! Pin
Pete O'Hanlon4-Mar-08 11:19
mvePete O'Hanlon4-Mar-08 11:19 
GeneralRe: ANYONE HELP HELP HELP HELP I NEED IT BEFORE MAR 6,2008 Pin
Anthony Mushrow4-Mar-08 13:07
professionalAnthony Mushrow4-Mar-08 13:07 
GeneralRe: ANYONE HELP HELP HELP HELP I NEED IT BEFORE MAR 6,2008 Pin
Guffa4-Mar-08 23:39
Guffa4-Mar-08 23:39 
GeneralRe: ANYONE HELP HELP HELP HELP I NEED IT BEFORE MAR 6,2008 Pin
Ravi Bhavnani5-Mar-08 4:35
professionalRavi Bhavnani5-Mar-08 4:35 
GeneralDataset disabling and reenabling constraints Pin
~~~Johnny~~~4-Mar-08 9:47
~~~Johnny~~~4-Mar-08 9:47 
I have local datasets where I read using the following function. The obj.Read() simply executes a stored procedure which is a select statement. For some reason, for my only dataset where I have 3 tables, the "this.EnforceConstraints = true;" statements fails saying the constratints where not respected (and it seems to happen only in debug, I never had a complain from the staff using the runtime), but this is not true for three reasons : the database is a copy of what the runtime environement uses, it is intermitenet even if the database does not change and the database has the same relations as the local dataset. (see below for the relations)

public void Read()
{
try
{
reading = true;
this.EnforceConstraints = false;
syncTime = DateTime.Now.ToUniversalTime();
foreach (SimpleObjects obj in this.Tables)
{
obj.Read();
}
this.EnforceConstraints = true;
reading = false;
}
catch (Exception e)
{
....code.....
}
}

Relations : (Very simple)
Relations.Add(new DataRelation("MembersToMembersAssociations", Tables["Members"].Columns[0], Tables["MembersAssociations"].Columns[0]));

Relations.Add(new DataRelation("MembersToMembersPhoneNumbers", Tables["Members"].Columns[0], Tables["MembersPhoneNumbers"].Columns[1]));

This is very anoying for I am never sure if I delever a new version if the problem will affcet the runtime, Is it a bug in Visual Studio 2005 (version 8.0.50727)? Did anybody else encounter this problem ?
GeneralUsing option (switches) with Process.Start Pin
TheJudeDude4-Mar-08 9:43
TheJudeDude4-Mar-08 9:43 
GeneralRe: Using option (switches) with Process.Start Pin
Giorgi Dalakishvili4-Mar-08 10:02
mentorGiorgi Dalakishvili4-Mar-08 10:02 
QuestionSockets and Threads Pin
Echilon4-Mar-08 8:04
Echilon4-Mar-08 8:04 
GeneralRe: Sockets and Threads Pin
led mike4-Mar-08 8:34
led mike4-Mar-08 8:34 
GeneralPerformance Explorer Pin
netJP12L4-Mar-08 8:03
netJP12L4-Mar-08 8:03 
GeneralRe: Performance Explorer Pin
led mike4-Mar-08 8:18
led mike4-Mar-08 8:18 
GeneralRe: Performance Explorer Pin
Pete O'Hanlon4-Mar-08 10:55
mvePete O'Hanlon4-Mar-08 10:55 
GeneralRe: Performance Explorer Pin
led mike4-Mar-08 11:07
led mike4-Mar-08 11:07 
GeneralRe: Performance Explorer Pin
Pete O'Hanlon4-Mar-08 11:11
mvePete O'Hanlon4-Mar-08 11:11 
GeneralRe: Performance Explorer Pin
Luc Pattyn4-Mar-08 13:02
sitebuilderLuc Pattyn4-Mar-08 13:02 
GeneralFile Upload Question Pin
Derrick.greer4-Mar-08 7:47
Derrick.greer4-Mar-08 7:47 
GeneralRe: File Upload Question Pin
led mike4-Mar-08 8:16
led mike4-Mar-08 8:16 
GeneralRe: File Upload Question Pin
Derrick.greer4-Mar-08 8:30
Derrick.greer4-Mar-08 8:30 
GeneralRe: File Upload Question Pin
led mike4-Mar-08 8:43
led mike4-Mar-08 8:43 
GeneralRe: File Upload Question Pin
Derrick.greer4-Mar-08 9:03
Derrick.greer4-Mar-08 9:03 
GeneralRe: File Upload Question Pin
led mike4-Mar-08 9:11
led mike4-Mar-08 9:11 
GeneralRe: File Upload Question Pin
Pete O'Hanlon4-Mar-08 10:14
mvePete O'Hanlon4-Mar-08 10:14 

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.