Assets/Scripts/Database.js(12,21): BCE0018: The name ‘IDbConnection’ does not denote a valid type (‘not found’). Did you mean ‘System.Runtime.InteropServices.ComTypes.ITypeComp’?
Assets/Scripts/Database.js(13,21): BCE0018: The name ‘IDbCommand’ does not denote a valid type (‘not found’). Did you mean ‘System.Runtime.InteropServices.ComTypes.ITypeComp’?
Assets/Scripts/Database.js(14,22): BCE0018: The name ‘IDataReader’ does not denote a valid type (‘not found’).
Post code.
– DaveAHave you
– Chronos-Limportthe necessary package containing the definition ofIDbConnection?Yes , I have imported necessary packages. import UnityEngine; import System; import System.Collections; import System.Data; import System.Data.Linq; import Mono.Data.Sqlite; import DbLinq; Also , If i put my script in Plugins/Editor folder or Assets/Editor folder , the errors are gone. But then I cant access this script in other scripts . I dont understand this.
– ForamAfter putting my script in Editor folder, All errors are gone. Then I access my script as following : var db : Database = new Database(); db.OpenDB(); And I got the error : BCE0018: The name 'Database' does not denote a valid type ('not found').
– ForamTry to use other title. Please help me to solve this in unity 4.0 seems too vague, potential answerers may just move on without even coming into this page. Use more specific title like "Database Error", "Missing IDbConnection" etc.
– Chronos-L