question about mygeneration doodads

Posted on 2009-04-29
Last Modified: 2013-11-26
my friend is using mygeneration doodads, so when he want to add new record to database he uses addnew(), but when using gridview or dropdown list he adds sqldatasource. for me this is mixing between 2-tier and 3-tier, am i right? i believe doodads is 3-tire!!
Question by:fahadman
    LVL 3

    Accepted Solution

    yes ,you are right ,,he can simply bind grid from his code like that :

    TableClass OBjGov = new TableClass();                                                          DG.DataSource = OBjGov.LoadAll();

    TableClass OBjGov = new TableClass ();
    DG_Department.DataSource = OBjGov.DefaultView;
    LVL 1

    Author Comment

    thanks shakashio, ur response is really great, i asked him and he said that gridview with doodads has performance issue, it is slower than using sql statement. is that right?
    LVL 3

    Expert Comment

    no I don't thimk so ,, My generation is not slower ,
    It's just that u lose millesec while maping DB tables to classes and this is not for  mygeneration only ,,it's for any way u will use to map the DB.
    My generation is too faster than nhibernate (as an example),it depend on how it will map DB tables,and my generation is one of the ery good wayes
    LVL 1

    Author Closing Comment

    Dear shakashico, ur answer was perfect and reflect ur deep experience. thank u very much im glad i found u. i want to use doodads and i have some question, please keep watching this site.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Using Quotation Marks in PHP This question ( seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now