PreparedStatements?

  • Thread starter Thread starter Peter Kirk
  • Start date Start date
P

Peter Kirk

Hi

in Java I would more often than not use a PreparedStatement for database
access (if I wasn't using an abstraction layer like Hibernate for example).

Is there an equivalent construction to PreparedStatements in C#? (Or what is
the best accepted method in the .NET/C# world for communicating with a
database?)

Thanks,
Peter
 
Have only the most basic knowledge of Hybernate, which seems to be a ORM
tool the .NET framework doesn't seem to have any production version of this
type of tool.As for the most common way to access databases from .NET code
would be to use ADO.NET, a collection of components that comes with the .NET
framework that access to databases easy.

If you have the framework check out the System.Data.* namespaces.

This site has good links to ADO.NET resources
http://www.datadirect.com/developer/net/useful_links/index.ssp

Good place to start
http://msdn.microsoft.com/library/d...cpguide/html/cpconaccessingdatawithadonet.asp

Hope this helps.
Cordell Lawrence
Teleios Systems Ltd.
 
Back
Top