Its embarrassing how much time I spent trying to figure out how to do exactly what you have demonstrated here in 9 minutes. In particular I couldn't find how to reference to the table entry currently selected in the datagridview.
@KobusGoosen Thanks :) Currently selected item can be referenced (in this case) through yourBindingSource.Current .
This is simple example, and I think it is not so appropriate for using in real application. But it shows some benefits from using LINQ to SQL technology.
хмм... попробовала повторить, у меня не хочет сам ключи заполнять( на SubmitChanges() вылетает exception, что не установлено Identity, хотя очень даже установлено, и вручную он сам автоинкремент ставит. =\
Its embarrassing how much time I spent trying to figure out how to do exactly what you have demonstrated here in 9 minutes. In particular I couldn't find how to reference to the table entry currently selected in the datagridview.
Thanks for the vid.
KobusGoosen 4 months ago
@KobusGoosen Thanks :) Currently selected item can be referenced (in this case) through yourBindingSource.Current .
This is simple example, and I think it is not so appropriate for using in real application. But it shows some benefits from using LINQ to SQL technology.
xvir777 4 months ago
хмм... попробовала повторить, у меня не хочет сам ключи заполнять( на SubmitChanges() вылетает exception, что не установлено Identity, хотя очень даже установлено, и вручную он сам автоинкремент ставит. =\
TessLaira 2 years ago
странно.... Может ты какой то из шагов упустила? А скрипт у тебя какой получился? напиши текст :)
xvir777 2 years ago
Спасибо, Дань. А что за прога, в которой ты БД создавал?
TessLaira 2 years ago 2
@TessLaira MS SQL Management Studio. В политехе вряд ли установят, но скрипт MS SQL можно выполнить из Visual Studio, правда это не совсем удобно
xvir777 2 years ago