PC Review


Reply
Thread Tools Rate Thread

Disabling EnforceConstraints

 
 
John
Guest
Posts: n/a
 
      22nd Feb 2008
Hi

Is there a way to disable EnforceConstraints on a dataset? I have this
statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
reluctant to set it to false as the designer may overwrite the code.

I only wish to do it temporarily to speed up fill operations.

Thanks

Regards


 
Reply With Quote
 
 
 
 
Rad [Visual C# MVP]
Guest
Posts: n/a
 
      28th Feb 2008
On Fri, 22 Feb 2008 21:59:40 -0000, John wrote:

> Hi
>
> Is there a way to disable EnforceConstraints on a dataset? I have this
> statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
> reluctant to set it to false as the designer may overwrite the code.
>
> I only wish to do it temporarily to speed up fill operations.
>
> Thanks
>
> Regards


You can set it to false just before the call to
DataAdapter.Fill(yourDataSet) call in your code

--
http://www.thinkersroom.com/bytes
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataTable RowChanging event occurs in Fill with EnforceConstraints =?Utf-8?B?RGFuaWVsIEdyYXNzaWNr?= Microsoft Dot NET Framework Forms 4 11th Dec 2006 12:06 PM
userDs1.EnforceConstraints problem Britney Microsoft ASP .NET 0 15th Sep 2005 03:03 PM
Does enforceconstraints mean errors or relations?? bjako Microsoft ADO .NET 1 3rd Mar 2005 12:36 AM
How to set EnforceConstraints on a datatable? W.G. Rowland Microsoft ADO .NET 2 11th Sep 2004 07:36 PM
Applying DeleteRule even though EnforceConstraints is false? Ed Microsoft ADO .NET 3 14th Jan 2004 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 AM.