Click here to Skip to main content
15,908,112 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
JokeRe: To bind or not to bind? Pin
Dan Mos26-Jan-11 8:54
Dan Mos26-Jan-11 8:54 
JokeRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 10:24
professionalSander Rossel26-Jan-11 10:24 
GeneralRe: To bind or not to bind? Pin
Eddy Vluggen26-Jan-11 9:26
professionalEddy Vluggen26-Jan-11 9:26 
AnswerRe: To bind or not to bind? Pin
Eddy Vluggen26-Jan-11 7:09
professionalEddy Vluggen26-Jan-11 7:09 
GeneralRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 9:04
professionalSander Rossel26-Jan-11 9:04 
GeneralRe: To bind or not to bind? Pin
Eddy Vluggen26-Jan-11 9:12
professionalEddy Vluggen26-Jan-11 9:12 
GeneralRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 10:42
professionalSander Rossel26-Jan-11 10:42 
GeneralRe: To bind or not to bind? Pin
Eddy Vluggen27-Jan-11 7:10
professionalEddy Vluggen27-Jan-11 7:10 
Naerling wrote:
We don't use the settings tab Smile

That's a good start Smile | :)

Naerling wrote:
And I'm not really against code generation as long as I know it is good code.

You think that Microsoft would put a generator in Visual Studio that would generate code that would look like it's written by a student?

Code Generation is cool, as long as you know exactly what it's generating, and why. I'm using the settings-tab sometimes, because I know what to expect and I'm pretty sure that there won't be any surprises there. I'm not using the dataset-designer, because I'm not intimately familiar with the code that gets generated - it's a foreign architecture to me, and I'd be lost if something went wrong.

Naerling wrote:
But selecting two datasources for two datagrids (master/detail) (from the datasources wizard in the designer) generates 6 items on my form and SQL statements such as "DELETE from SomeTable WHERE (every field in that table) = (every field in that table-variable)" even if there is a PK on that table. If I switch datasources in my grid I could end up with identical items called 'DataBindingItem' and 'DataBindingItem1'. And if I use a BindingNavigator I can use a 'Save' button which gives me exceptions rather than messageboxes if I leave some values empty, so I'd still have to write all validation logic (even though it's known from the datasource).
So that's why I was wondering if this wizard for datasources is all that good.

It's doing more bad than good, most of the time. It's not been used in any of the shops where I worked, with a single exception where it was considered a nice tool to create prototypes.

Naerling wrote:
The documentation of our third party tool uses it all the time. Although they give some code examples using DataAdapters too.

I'd expect that there'd be an alternative way to load data? Otherwise it'd be useless with a tool like, say, SharpDevelop?

Naerling wrote:
Nice MSDN article btw Smile

Thanks Smile | :)
I are Troll Suspicious | :suss:

GeneralRe: To bind or not to bind? Pin
Sander Rossel27-Jan-11 10:40
professionalSander Rossel27-Jan-11 10:40 
GeneralRe: To bind or not to bind? Pin
Eddy Vluggen27-Jan-11 11:29
professionalEddy Vluggen27-Jan-11 11:29 
GeneralRe: To bind or not to bind? Pin
Sander Rossel27-Jan-11 11:49
professionalSander Rossel27-Jan-11 11:49 
AnswerRe: To bind or not to bind? Pin
RobCroll26-Jan-11 12:41
RobCroll26-Jan-11 12:41 
AnswerRe: To bind or not to bind? Pin
Abhinav S28-Jan-11 19:27
Abhinav S28-Jan-11 19:27 
QuestionThe Dreaded Stackoverflow Exception Pin
L Viljoen25-Jan-11 22:02
professionalL Viljoen25-Jan-11 22:02 
AnswerRe: The Dreaded Stackoverflow Exception Pin
Pete O'Hanlon26-Jan-11 1:06
mvePete O'Hanlon26-Jan-11 1:06 
GeneralRe: The Dreaded Stackoverflow Exception Pin
L Viljoen26-Jan-11 1:12
professionalL Viljoen26-Jan-11 1:12 
GeneralRe: The Dreaded Stackoverflow Exception Pin
Pete O'Hanlon26-Jan-11 1:20
mvePete O'Hanlon26-Jan-11 1:20 
GeneralRe: The Dreaded Stackoverflow Exception Pin
L Viljoen26-Jan-11 1:22
professionalL Viljoen26-Jan-11 1:22 
GeneralRe: The Dreaded Stackoverflow Exception Pin
Pete O'Hanlon26-Jan-11 1:28
mvePete O'Hanlon26-Jan-11 1:28 
GeneralRe: The Dreaded Stackoverflow Exception Pin
Dave Kreskowiak26-Jan-11 3:25
mveDave Kreskowiak26-Jan-11 3:25 
GeneralRe: The Dreaded Stackoverflow Exception Pin
L Viljoen26-Jan-11 3:28
professionalL Viljoen26-Jan-11 3:28 
AnswerRe: The Dreaded Stackoverflow Exception Pin
Abhinav S26-Jan-11 2:19
Abhinav S26-Jan-11 2:19 
AnswerRe: The Dreaded Stackoverflow Exception Pin
Robert Tanenbaum28-Jan-11 3:20
Robert Tanenbaum28-Jan-11 3:20 
QuestionLinq to SQL - yes or no...? Pin
Pravin Patil, Mumbai25-Jan-11 21:20
Pravin Patil, Mumbai25-Jan-11 21:20 
AnswerRe: Linq to SQL - yes or no...? Pin
L Viljoen25-Jan-11 22:07
professionalL Viljoen25-Jan-11 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.