I tried to create linq-to-sqlite dbml using DbLinq but in vain. Each time I get different type of errors. May be I'm somewhere wrong.
Can anyone tell me the step by step procedure to create the dbml file from the Dblinq source code.
I tried to create linq-to-sqlite dbml using DbLinq but in vain. Each time I get different type of errors. May be I'm somewhere wrong.
Can anyone tell me the step by step procedure to create the dbml file from the Dblinq source code.
You need to provide a /provider:PROVIDER option to DbMetal.exe so that it knows what kind of database you're using, otherwise it assumes you want Microsoft SQL Server.
Furthermore, you can only use the /dbml or /code options, not both at the same time.
Try this command instead:
DbMetal /provider:Sqlite /conn "Data Source=myDb.db3" /code:mycode.cs /namespace:myNS
If that doesn't work, please file a bug at: http://code.google.com/p/dblinq2007/issues/list
Solution:
Steps I followed:
System.Data.SQLite.dll file to src\DbMetal\obj\Debug folderDbMetal /provider:Sqlite /conn "Data Source=File.db3" /dbml:File.dbml
DbMetal /code:File.cs File.dbml
The procedure is well illustrated in this link -> http://code.google.com/p/dblinq2007/wiki/Installation