| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Data.Entity; |
| 4 | using System.Data.Entity.Core.Common; |
| 5 | using System.Data.SQLite; |
| 6 | using System.Data.SQLite.EF6; |
| 7 | using System.Linq; |
| 8 | using System.Text; |
| 9 | using System.Threading.Tasks; |
| 10 | |
| 11 | namespace Core.Librarys.SQLite |
| 12 | { |
| 13 | public class SQLiteConfiguration : DbConfiguration |
| 14 | { |
| 15 | public SQLiteConfiguration() |
| 16 | { |
| 17 | SetProviderFactory("System.Data.SQLite", SQLiteFactory.Instance); |
| 18 | SetProviderFactory("System.Data.SQLite.EF6", SQLiteProviderFactory.Instance); |
| 19 | SetProviderServices("System.Data.SQLite", (DbProviderServices)SQLiteProviderFactory.Instance.GetService(typeof(DbProviderServices))); |
| 20 | } |
| 21 | } |
| 22 | } |