when I try this command with DbMetal : DbMetal.exe /namespace:Tooling /code:Tooling.cs /pluralize "/conn:Data Source=Tooling.db3" /provider:SQlite
it fails on me and I get: WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM \Software\M icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo gging. To turn this feature off, remove the registry value [HKLM\Software \Microsoft\Fus ion!EnableLog]. Sorry for the noob step by step questions, but I really want to get this to work. Aaron On Oct 27, 9:25 pm, Jonathan Pryor <[email protected]> wrote: > Version 0.18 is ancient (though truth told, I couldn't tell you what > actually changed in DbLinq over the last year...except for all the bugs > I know I fixed, which may or may not have any bearing on what you're > seeing.) > > If possible, please try trunk. > > As for DbMetal, this _used_ to work at one point: > > DbMetal.exe /namespace:nwind /code:Northwind.cs /pluralize > "/conn:Data Source=Northwind.db3" /provider:Sqlite > > The above would generate a Tooling type (and all related entity types) > for you. That might work for you. > > - Jon > > On Tue, 2009-10-27 at 19:47 -0700, Aaron Peterson wrote: > > 1. Version is 0.18 > > > 2. This is where I think I went wrong. I built the Tooling.cs file > > after the file in the sqlite example folder. > > > can someone provide me with a link that explains the command strings > > for dbmetal? > > > Aaron > > > On Oct 27, 5:57 pm, Jonathan Pryor <[email protected]> wrote: > > > 1. Which version is this? > > > > 2. How did you create the Tooling type? Presumably with DbMetal, but > > > specifically did you pass a /provider option? > > > > 2.b: If you view the source to Tooling, does the Tooling(IDbConnection) > > > constructor use DbLinq.Sqlite.SqliteVendor? > > > > 3. What is the full stack trace to the error? > > > > Thanks, > > > - Jon > > > > On Tue, 2009-10-27 at 14:59 -0700, Aaron Peterson wrote: > > > > I am doing some testing with DBLinq and SQLite. I want to test a few > > > > commands to see how well it all performs. > > > > > I am stuck on my first test app though. > > > > > Please can someone tell me what I am doing wrong? > > > > > string connStr = "Data Source=c:\\Individual Project\ > > > > \Tooling.db3;Version = 3;"; > > > > Tooling tool = new Tooling(new XSqlConnection(connStr)); > > > > Sanders insertSander = new Sanders(); > > > > insertSander.OverallDiam = 2; > > > > insertSander.Height = 1; > > > > if(tool.DatabaseExists()) > > > > { > > > > tool.Sanders.InsertOnSubmit(insertSander); > > > > tool.SubmitChanges(); > > > > } > > > > > I get an error :Object already attached. > > > > > Please help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
