Hello
The sample code that I need on my own and it similar to the your sample code you've written
Something went wrong and it is
Seed method is not called in class LeitnerContextCreateDatabaseIfNotExists
Therefore tables can be built
But they can not be made for initial values
Please Guide me
Thanks
Sample Code : http://www.solidfiles.com/d/4632d66fc2/
Why Seed Method does not call ?
Re: Why Seed Method does not call ?
Please do right click on your solution in Solution Explorer > Properties > Common Properties > Project Dependencies. Select LeitnerBox in the Projects drop-down and set "Depends on" options for all available projects.
2. Open Form1.cs and add the following line after creating the leitner variable:
1. Open App.config in the LeitnerBox project and create the connection string with the name of the context you are working with:puvinax wrote:Seed method is not called in class LeitnerContextCreateDatabaseIfNotExists
Code: Select all
<connectionStrings>
<add name="LeitnerBoxContext" providerName="Devart.Data.SQLite" connectionString="DataSource=newDb.db3;Version=3;FailIfMissing=False;" />
</connectionStrings>
Code: Select all
leitner.Database.Initialize(false);
Re: Why Seed Method does not call ?
WOW Super Fantastic !!!
THANKS for your efforts

THANKS for your efforts


