473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Am I on the right path...

37
(third and last part)

In general I have the following in mind:
Database <-> LisaDataObject <-> Business Objects <-> Controls

One would ask perhaps: why not bind data to the controls directly?

First is that I don't like the VS wizards. They create code-behind-behind and I don't want to miss important parts of code which is essential for my application. Everything is tightly packed together and allows me for maximum flexibility (I change table and columnnames in the database quite often in this stage, I know I should have this stuff sorted out already but it's hard to decide on naming conventions).

Last reason for this approach is that now I can use 2 or 3 lines of code to do a lot of work so it's clean as well.

Would this be a acceptable approach from the perspective of a .NET developer?
Apr 19 '10 #1

✓ answered by Frinavale

Oh I see you don't like the Visual Studio designer stuff.

Neither do I...it frustrates me and when people ask questions related to why their data isn't working properly because of the designer I pretty much abandon the question or try to convince them to not use it.

You can still use databinding without relying on the Visual Studio designer. Binding is extremely powerful and makes life a lot nicer....and the way things are going with WPF (etc) it seems to be the way of the future.

Take another look at databinding.


-Frinny

4 1217
Frinavale
9,735 Expert Mod 8TB
Oh I see you don't like the Visual Studio designer stuff.

Neither do I...it frustrates me and when people ask questions related to why their data isn't working properly because of the designer I pretty much abandon the question or try to convince them to not use it.

You can still use databinding without relying on the Visual Studio designer. Binding is extremely powerful and makes life a lot nicer....and the way things are going with WPF (etc) it seems to be the way of the future.

Take another look at databinding.


-Frinny
Apr 27 '10 #2
robjens
37
Thank you so much for sharing that Frinavale. I kinda missed that someone answered this topic so please excuse me for the delayed response.

Partially I have found the stuff I addressed, most easily being the property scoping rules of course. Though for now in my code I mostly use Private and Public (for ease of mind) but where the latter could be replaced with Protected Friend without problems.

My main problem with the VS wizards is, as you noted, indeed the code-behind-behind generated lines. It leaves traces when deleting the objects (like bs, ds, da etc) from the visual designer IDE which is just stupid regardless of simply using the error window to remove them. Something fundamental like that (MS uses a lot of these objects to do stuff) and still have these easy to spot bugs, it just doesn't make much sense. VS doesn't behave like that with other "items" on a form and I guess they would have fixed this by now. It's hard to fix no doubt.

For learning purposes and mainly because of flexibility I have set my mind on T3 program layers and came a long way in a short time. Thanks to some Bytes.com posts among others so cheers for that ;)

Furthermore, my focus on OOP business objects and LINQ has mainly to do with possible future requests from my employer. For now I'm just programming as a hobby but I'm trying to make a solid starting point for any future stuff and knowing my employer will flip-flop a lot.

The problem with implementing polymorphism or reflection is mainly due to the fact that I try to implement them on a existing concept rather than actually needing them for my business model to function. The wrong way.

Anyway thanks again for sharing your insight and time.

Best regards,

Rob
May 1 '10 #3
Niheel
2,460 Expert Mod 2GB
Please one question per thread, this is a discussion.
May 1 '10 #4
Frinavale
9,735 Expert Mod 8TB
I've split the thread into 3 threads.
May 3 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Bo Wisén | last post by:
Hi, A project in VB6 recently worked without any problems but now it's complaining when I try to use 'Right$'. In immediate mode, when I'm typing 'print left$("123456",2)' I get the correct...
6
by: Dean Slindee | last post by:
I am looking for the "right" way to handle inserting and presenting null date values. Public Const c_NullDate As Date = #12:00:00 AM# If I set the value of a date variable in an SQL Server insert...
3
by: Brett | last post by:
I've compiled a DLL which is being called from a different project. The following code is from the DLL. When I run the WriteToFile sub the second time from the spawning project, I get the error...
0
by: Thom Little | last post by:
What a curious use of the word rename ... It is stated that string strA= Path.GetTempFileName(); creates a temporary file name in the temp directory and ... Path.ChangeExtension( strA, "xxx" );...
5
by: Tim Daneliuk | last post by:
Ah yes, moral philosophy and python all come together... Er, that is to day: Imagine you have this situation on a *nix filesystem: Symlink A: /foo -/usr/home Symlink B: /bar -/foo/username ...
26
by: Clamato | last post by:
Hi everyone, I'm having the hardest time with an issue that you would think to be easy to do! But, being an access noob, I can't seem to get it to work. Access 2000. What I have is a tab...
5
by: | last post by:
What are the equivalant to left, right, etc. in C#. How can I extract strings from a string without them? For instance, I have a string like so: ...
32
by: Bob Greschke | last post by:
I'm reading 3-byte numbers from a file and they are signed (+8 to -8million). This seems to work, but I'm not sure it's right. # Convert the 3-characters into a number. Value1, Value2, Value3 =...
16
by: Stef Mientki | last post by:
hello, How can I find the correct case of a filename ? Background in my program I use case sensitive filenames, just like Python requires. Now I've integrated pdb into the program, but pdb...
5
by: kulabhishek | last post by:
Hello, I have developed one application, and added it to right click pop-up menu of the folder. Whenever user right-clicks on folder and selects my application from pop-up menu, I want the path...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.