Version OScar
This commit is contained in:
30
ADSUtileriasService/Conexion/Local/BaseRepository.cs
Normal file
30
ADSUtileriasService/Conexion/Local/BaseRepository.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSUtileriasService.Helpers.ADSSqlite;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local
|
||||
{
|
||||
public class BaseRepository
|
||||
{
|
||||
public SqlLiteBase bd;
|
||||
protected void OnError(string strerror, Exception e)
|
||||
{
|
||||
|
||||
Mod.GuardaLog(e, strerror);
|
||||
}
|
||||
public BaseRepository(SqlLiteBase bd)
|
||||
{
|
||||
if (bd.BDType!= SqlLiteConnectionEnum.Empresa)
|
||||
{
|
||||
Helpers.Mod.GuardaLog("Se envio una BD Incorrecta");
|
||||
}else
|
||||
{
|
||||
this.bd = bd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user