• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 546
  • Last Modified:

question about mygeneration doodads

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!!
0
fahadman
Asked:
fahadman
  • 2
  • 2
1 Solution
 
shakashicoCommented:
yes ,you are right ,,he can simply bind grid from his code like that :

TableClass OBjGov = new TableClass();                                                          DG.DataSource = OBjGov.LoadAll();
DG.DataBind();
or:

TableClass OBjGov = new TableClass ();
OBjGov.cproc_LoadDGDepartments();  
DG_Department.DataSource = OBjGov.DefaultView;
DG_Department.DataBind();
 
0
 
fahadmanAuthor Commented:
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?
0
 
shakashicoCommented:
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
0
 
fahadmanAuthor Commented:
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now