$ cat create.sql PRAGMA foreign_keys = ON; CREATE TABLE owners ( id INTEGER, name varchar(20) NOT NULL, surname varchar(20) NOT NULL, primary key( id ) );
CREATE TABLE pets ( id INTEGER, name varchar(20) NOT NULL, owner INTEGER, primary key( id ), FOREIGN KEY( owner ) REFERENCES Owners(id) ); insert into owners values ( null, 'mario', 'rossi' ); insert into owners values ( null, 'marina', 'rosa' ); $ sqlite3 -init create.sql test.db3 $ sqlmetal -namespace:Foo -language:csharp -code:output.cs test.db3 - provider:SQLite -dbml:output.dbml DbLinq Database mapping generator 2008 version 0.20 for Microsoft (R) .NET Framework version 3.5 Distributed under the MIT licence (http://linq.to/db/license) >>> Reading schema from DBML file 'test.db3' sqlmetal: Object reference not set to an instance of an object what am I missing? Is there any usage documentation available? If so please point me to it. Thanks for reading -- 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.
