public AlmacenaEntidad(IDbConnectionFactory dbConnectionFactory, IAutoQueryDb autoQuery, ICacheClient cacheClient, string connectionName = null) : base(dbConnectionFactory, autoQuery, cacheClient, connectionName) { }
public ConsultaEntidad(IDbConnectionFactory dbConnectionFactory, IAutoQueryDb autoQuery, ICacheClient cacheClient) { this.cacheClient = cacheClient; this.autoQuery = autoQuery; try { conexion = dbConnectionFactory.Open(); } catch (Exception ex) { Console.WriteLine("Consulta Entidad {0}", ex.Message); } }
public ConsultaEntidad(IDbConnectionFactory dbConnectionFactory, IAutoQueryDb autoQuery, ICacheClient cacheClient, string connectionName = null) { this.cacheClient = cacheClient; this.autoQuery = autoQuery; try { conexion = connectionName.IsNullOrEmpty() ? dbConnectionFactory.Open() : dbConnectionFactory.Open(connectionName); } catch (Exception ex) { Console.WriteLine("Consulta Entidad {0}", ex.Message); } }
public static SqlExpression <From> CreateQuery <From, Into>(this IAutoQueryDb autoQuery, IQueryDb <From, Into> model, IRequest request) { return(autoQuery.CreateQuery(model, request.GetRequestParams(), request)); }
//private readonly ICacheClient cacheClient; public AlmacenaEntidad(IDbConnectionFactory dbConnectionFactory, IAutoQueryDb autoQuery, ICacheClient cacheClient) : base(dbConnectionFactory, autoQuery, cacheClient) { }