stored procedures - .NET: Writing DataAccess dll -
i write data relations processes (general functions regarding dataaccess via .net) in dll , want use repeatedly. kinds of functions should have in dll? want use stored procedures , statements. can suggest me? please guide me! all!
microsoft enterprise library, using data access application block should need. framework itself.
another interesting data access library known orm nhibernate.
if want speed dal development, ought consider these 2 either individually or used together.
the entlib daab allow provide named connectionstring application configuration file(s) won't need deploy new build of application upon connectionstring change, config file. common practice manage , configure 1 connectionstring per configuration file, if 1 connection string changes, deploy new configuration file connection, , you're done! entlib allows manage connection pool according best practices. , through quite simple xml configuration files.
as nhibernate, object/relational mapping tool can handle data access through isession api. need concentrate on developing business class diagram. once you're done, write xml mapping files respect object model, you're set persist objects underlying datastore, whatever datastore use. while using schemaexporttool, may don't bother writing ddl scripts, nhibernate can create relational schema you!
as said, either 1 or both, these dal layer themselves, , much more! don't bother wrapping them class library, unless want build user-friendly tool dal. , 100% resusable! isn't nice?
Comments
Post a Comment