public BaseStorageRepository(IMasterRepository masterRepository, IOfflineStorageRepository offlineStorageRepo) : base(masterRepository) { OfflineStorageRepo = offlineStorageRepo; Task.Run(async() => Exists = await CheckCreateModelTableAsync()); TableCountQuery = $"SELECT count(1) FROM sqlite_master WHERE type = 'table' AND name = '{tableName}'"; }
public ContactStorageRepository(IMasterRepository masterRepository, IOfflineStorageRepository offlineStorageRepo) : base(masterRepository, offlineStorageRepo) { SelectTrustedSources = $"SELECT * FROM ContactModel where ContactRole = '{TrustedSourceRoleName}'"; SelectDefaultBeneficiary = $"SELECT * FROM ContactModel where ContactRole = '{DefaultBeneficiaryRoleName}'"; }
public UserStorageRepository(IMasterRepository masterRepository, IOfflineStorageRepository offlineStorageRepo) : base(masterRepository, offlineStorageRepo) { }