|
|
|
EDM - Связанное поле и ошибка
|
|||
|---|---|---|---|
|
#18+
Я выполняю вот такой код: UpdatesFile updateFile = new UpdatesFile(); updateFile.filesize = Int32.Parse(fileSize.ToString()); updateFile.installorder = i; updateFile.updates_filelist = currentFile; updateFile.updates = selectedUpdate; entities.SaveChanges(true); После чего у меня летит ошибка: System.Data.UpdateException: При обновлении записей произошла ошибка. Дополнительные сведения см. в InnerException. ---> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'update_id', table 'jugger.dbo.updates_file'; column does not allow nulls. INSERT fails. The statement has been terminated. Почему при ссылки он не проставляет ID в поля самих ссылок? Как это исправить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.03.2010, 01:09 |
|
||
|
|

start [/forum/topic.php?fid=17&msg=36549486&tid=1351381]: |
0ms |
get settings: |
11ms |
get forum list: |
22ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
175ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 232ms |
| total: | 496ms |

| 0 / 0 |
