[FirstProject] Database empty

Original Post enigma's Avatar

enigma

02 Jul, 2010 02:17 PM via web

Hi guys,
I followed the First Application tutorial, and the application works fine. But when the application ends, if I open manually the database I can't see any table, it's empty.
Where is the problem?
Please note that I use MsSqlCeConfiguration instead of SQLiteConfiguration.
Thanks.

  1. 2 Posted by barrett on 07 Jul, 2010 03:28 PM

    barrett's Avatar

    Can you post your Session Factory Code ?

    eg

    private static ISessionFactory CreateSessionFactory()
    

    {

    return Fluently.Configure()
     .Database(
      SQLiteConfiguration.Standard
        .UsingFile("firstProject.db")
    )
     .Mappings(m =>
      m.FluentMappings.AddFromAssemblyOf<Program>())
    .BuildSessionFactory();
    

    }

    At first blush I imagine you aren't pointing the above to the correct assembly or selected the correct catalog or db.

    Also, I would invite you to learn about the ShowSql Method. A quick google search should be helpful.

    -b

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is the opposite of down?