Check Contraints on DataTable or DataColumn

  • Thread starter Thread starter John Hui
  • Start date Start date
J

John Hui

I am trying to implement a Check Contraint on a DataTable
or DataColumn.

To do this, I have tried to inherit from
System.Data.Constraint class. But Visual Studio
automatically includes code into my class telling me to
override a number of pricate funcctions and procedures
for example,

Private Overrides Function CanEnableConstraint() As
Boolean

According to Intellisense, this function is declared
Private Overridable Mustoverride in
System.Data.Constraint class. However, this is
against .NET programming rules. My questions are.

1) How is this possible?

2) How can I inherit from the System.Data.Constraint
class?

3) How do I implement a check constraint?

Thanks for any help.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top