Windows Service: EF + MySql without app.config
问题 At the moment I'm writing a windows service. I'm already using EntityFramework with MSSQL database which is working perfectly. Now I have to use MySql parallely. But I can't manage to get it running ... I would like to avoid using the app.config and configure EntityFramework via the constructor of my class derived from DbContext. I have a SqlContext class: public class SqlContext : DbContext { public IDbSet<ServiceauftragSource> ServiceauftragSource { get; set; } public SqlContext(string