Microsoft Enterprise Libnrary with SmartDevice projects RRS feed

  • Question

  • User-1629691846 posted


    Can i use Microsoft Enterprise library with Smart Device project s in Vs2008?

    I have created a SmartDevice project. & added a reference of-




    then did this on a sample application - >

    SqlCeDatabase sqlCeDb = new SqlCeDatabase("Data Source=\\my documents\\TestSqlCeLib.sdf");

    string sSql = "";
    sSql = "Insert Into Test(UserName,Password) values ('" + txtUserName.Text + "', '" + txtPassword.Text + "') ";
    sqlCeDb.ExecuteReaderSql("Select * from Test");

    but it gives me error on - The type 'System.Data.Common.DbParameter' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    what should i do?

    Saturday, October 9, 2010 2:58 AM

All replies