Ejemplo n.º 1
0
        //private readonly SQLiteConnection conn;
        public Mp3Repository(string dbFileName, ref OperationResult op)
        {
            try
            {
                _dbFileName = dbFileName;
                _mp3Context = new Mp3DbContext(dbFileName);

                // Create a new database connection:
                //conn = new SQLiteConnection($"Data Source={dbFileName}; Version = 3; New = True; Compress = True; ");
            }
            catch (Exception ex)
            {
                op.AddException(ex);
            }
        }
Ejemplo n.º 2
0
 public AccountRepository(Mp3DbContext context)
 {
     _context = context;
 }