|
|
|
BeginInit
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. Однко если поменять 2 и 3 строку местами (сперва попытаться загрузить таблицу Detail) то полчаем ошибку System.Data.ConstraintException was unhandled Message="Не удалось включить ограничения. По меньшей мере одна строка содержит значение, нарушающее ограничения по определенности значений, уникальности или внешним ключам." Что посоветуете (кроме изменения последоватеьности загрузки) ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.10.2007, 08:40 |
|
||
|
BeginInit
|
|||
|---|---|---|---|
|
#18+
Дмитрий16 Насколько я понимаю, BeginInit отключает все проверки до поной инициализации объекта Dataset. Это с чего вы взяли? авторRemarks The Visual Studio .NET design environment uses this method to start the initialization of a component that is used on a form or used by another component. The EndInit method ends the initialization. Using the BeginInit and EndInit methods prevents the control from being used before it is fully initialized. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.10.2007, 09:08 |
|
||
|
BeginInit
|
|||
|---|---|---|---|
|
#18+
Думающий Дмитрий16 Насколько я понимаю, BeginInit отключает все проверки до поной инициализации объекта Dataset. Это с чего вы взяли? авторRemarks The Visual Studio .NET design environment uses this method to start the initialization of a component that is used on a form or used by another component. The EndInit method ends the initialization. Using the BeginInit and EndInit methods prevents the control from being used before it is fully initialized. Дошло. Надо так: Me.ADOTESTDataSet.EnforceConstraints = False ... Me.ADOTESTDataSet.EnforceConstraints = True ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.10.2007, 09:23 |
|
||
|
|

start [/forum/topic.php?fid=17&msg=34876937&tid=1352570]: |
0ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
86ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
52ms |
get tp. blocked users: |
1ms |
| others: | 236ms |
| total: | 425ms |

| 0 / 0 |
