in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Programmatically initializing sqlite database

Last post 03-18-2010 11:09 AM by frankiansmith. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-18-2010 11:09 AM

    Programmatically initializing sqlite database

    Hello,

    I am trying to get up to speed with C#/SQLite/LINQ, and I was wondering if someone could point me in the right direction on the best way of creating an empty database file.

    I want to define my database structure in C# using Linq.Mapping constructs, e.g. with code like this:

         [Table]
        class receiver
        {
            [Column]
            public string name;
            [Column]
            public int serial;
        }

    Based on a set of class definitions like this, what is the best approach to creating a database file with a schema that reflects the classes?

    Thanks,

    -Frank

     

    Filed under:
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems