31 lines
730 B
C#
31 lines
730 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|