Closed Ascolon closed 6 years ago
Hey. I installed the library and I want to create a database. I created classes for the table model my file Apppionfig look like this My context looks like this
<connectionStrings> <add name = "HRConnection" connectionString = "Data Source =. \ HR.db" providerName = "System.Data.SQLite" /> </ connectionStrings>
public class HRContext: DbContext { protected override void OnModelCreating (DbModelBuilder modelBuilder) { var sqliteConnectionInitializer = new SqliteCreateDatabaseIfNotExists <HRContext> (modelBuilder); Database.SetInitializer (sqliteConnectionInitializer); } public DbSet <Associate> Associates {get; set; } public DbSet <AssociateGroup> AssociateGroups {get; set; } }
But I'm getting an exception
Hey. I installed the library and I want to create a database. I created classes for the table model my file Apppionfig look like this My context looks like this
But I'm getting an exception