PC Review


Reply
Thread Tools Rate Thread

Data Access Components

 
 
A.M
Guest
Posts: n/a
 
      22nd Feb 2005
Hi,



Is there any tool that automatically generates code for Data Access
component based on existing database table?



Thanks,

Alan


 
Reply With Quote
 
 
 
 
Prodip Saha
Guest
Posts: n/a
 
      22nd Feb 2005
Visual Studio .Net can do it but Microsoft says- don't use it!! It's
virtually imposible to accurately generate data access codes through some
tools. I know you would not like this answer but that's the reality.

"A.M" <(E-Mail Removed)> wrote in message
news:u4jMz$(E-Mail Removed)...
> Hi,
>
>
>
> Is there any tool that automatically generates code for Data Access
> component based on existing database table?
>
>
>
> Thanks,
>
> Alan
>
>



 
Reply With Quote
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      23rd Feb 2005
Thanks for Prodip's quick response!

Hi Alan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to generate data accessing
code automatically according to particular database table. If there is any
misunderstanding, please feel free to let me know.

I think you mean the DataAdapter's SELECT, UPDATE, INSERT and DELETE
commands in this issue. We can use the DataAdapter Configuration Wizard to
accomplish this. You can drag a DataAdapter object from the toolbox and the
wizard will be shown. We just use the query builder to generate the SELECT
command, and the other commands will be generated in later steps of the
wizard.

If you need to generate the commands at runtime using code, and working on
a SQL server as database, we can also use SqlCommandBuilder class to
achieve this. For more information, please check the following link:

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatasqlclientsqlcommandbuilderclasstopic.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      23rd Feb 2005
Prodip Saha wrote:
> Visual Studio .Net can do it but Microsoft says- don't use it!! It's
> virtually imposible to accurately generate data access codes through some
> tools. I know you would not like this answer but that's the reality.


Erm... perhaps your reality, but not mine or anybody elses. It's
perfectly possible to generate data access code from table definitions,
and even generate SQL on teh fly using simple typed query specifications
and meta-data.

Frans

> "A.M" <(E-Mail Removed)> wrote in message
> news:u4jMz$(E-Mail Removed)...
>
>>Is there any tool that automatically generates code for Data Access
>>component based on existing database table?


Frans

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      23rd Feb 2005
A.M wrote:
>
> Is there any tool that automatically generates code for Data Access
> component based on existing database table?


Depends on which database your tables are in We don't support all
databases yet, but a wide range, so perhaps your database is supported.
Feel free to try the demo: http://www.llblgen.com

Frans

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      24th Feb 2005
SQL Server 2005 allows you to specify Query Hints without actually modifying
the Query itself. This however takes into account the fact that all query
plans are cached. Including Dynamic SQL/Embedded SQL.

Now, for such autogenerated queries, or the ones generated on fly, wouldn't
they be at a terrible disadvantage that you couldn't specify hints to them
in advance?

- Sahil Malik
http://codebetter.com/blogs/sahil.malik/





"Frans Bouma [C# MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Prodip Saha wrote:
> > Visual Studio .Net can do it but Microsoft says- don't use it!! It's
> > virtually imposible to accurately generate data access codes through

some
> > tools. I know you would not like this answer but that's the reality.

>
> Erm... perhaps your reality, but not mine or anybody elses. It's
> perfectly possible to generate data access code from table definitions,
> and even generate SQL on teh fly using simple typed query specifications
> and meta-data.
>
> Frans
>
> > "A.M" <(E-Mail Removed)> wrote in message
> > news:u4jMz$(E-Mail Removed)...
> >
> >>Is there any tool that automatically generates code for Data Access
> >>component based on existing database table?

>
> Frans
>
> --
> ------------------------------------------------------------------------
> Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
> My .NET blog: http://weblogs.asp.net/fbouma
> Microsoft MVP (C#)
> ------------------------------------------------------------------------



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The .Net Data OLE DB Provider(System.Data.OleDb) requires Microsoft Data Access Components(MDAC) version 2.6 or later. sanjay prasad Microsoft ADO .NET 1 22nd Sep 2006 01:45 AM
Data Access Logic Components =?Utf-8?B?TWFyayBHaWxrZXM=?= Microsoft ASP .NET 3 26th May 2006 03:20 PM
Naming data access components Chris Fulstow Microsoft ASP .NET 6 14th Apr 2006 04:01 PM
Using Data Access Logic Components Henke Microsoft ADO .NET 1 5th Oct 2004 03:31 PM
Data Access Components Relaxin Microsoft C# .NET 1 19th Jul 2004 08:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:49 PM.