Nackup / Restore of total DB is working
This commit is contained in:
@ -17,7 +17,7 @@ namespace StockDAL
|
||||
var entity = (from brr in context.BackupRegings
|
||||
where brr.Id == backupRegister.Id
|
||||
select brr).FirstOrDefault();
|
||||
if(entity == null)
|
||||
if (entity == null)
|
||||
{
|
||||
entity = new BackupRegister
|
||||
{
|
||||
@ -40,6 +40,17 @@ namespace StockDAL
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
||||
public BackupRegister GetBackupRegisterById(int brId)
|
||||
{
|
||||
using var context = new StockContext();
|
||||
var entity = (from br in context.BackupRegings
|
||||
where br.Id == brId
|
||||
select br).FirstOrDefault();
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<BackupRegister> GetAllBackupRegisters()
|
||||
{
|
||||
using var context = new StockContext();
|
||||
|
||||
Reference in New Issue
Block a user