Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Enterprise Library Data access application block 2.0

Enterprise Library Data access application block 2.0

Scheduled Pinned Locked Moved Database
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saltcode
    wrote on last edited by
    #1

    Hi guys, Please help,I am having an issue with data access block connection to the database from my class library project. using the data access block to connect to database works fine in my website project. but i try creating a separate class library project to connect to the database i now receive an error message. "The value can not be null or an empty string." and this is the code: Database motomandb = DatabaseFactory.CreateDatabase(); DbCommand motomandbCommand = motomandb.GetSqlStringCommand(query); using(DbConnection motomanConnection = motomandb.CreateConnection()) { DbTransaction motomanTransaction = motomanConnection.BeginTransaction(); try { rowsaffected = motomandb.ExecuteNonQuery(motomandbCommand, motomanTransaction); motomanTransaction.Commit(); } catch (Exception e) { motomanTransaction.Rollback(); } } thanks in advance

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups