Exemplo n.º 1
0
 public TecnologiaLicenciadaRepository()
 {
     dbGI = new GI_Context();
     dbGI.Database.Log = Escribe.Write;
     dbPI  = new PI_Context();
     dbGEN = new GEN_Context();
 }
        public async Task <List <int?> > GetDerechosAutorByCollate(string likeNombre)
        {
            try
            {
                PI_Context picontext = new PI_Context();
                var        palabras  = likeNombre.Split(' ');
                var        query     = "SELECT DerechosAutorId FROM PI.tab_DerechosAutor where Titulo collate Latin1_General_CI_AI LIKE '%";
                foreach (var palabra in palabras)
                {
                    query += palabra + "%' and Titulo collate Latin1_General_CI_AI LIKE '%";
                }
                var subconsulta = query.Substring(0, query.Length - 47);
                var resultados  = await picontext.Database.SqlQuery <int?>(subconsulta).ToListAsync();

                return(resultados);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message, e);
            }
        }
Exemplo n.º 3
0
 public TipoPIRepository()
 {
     _ctx = new PI_Context();
 }
Exemplo n.º 4
0
 public DerechosAutorRepository()
 {
     _pictx = new PI_Context();
 }
Exemplo n.º 5
0
 public AutoresExtPIPatrimonioRepository()
 {
     _ctx = new PI_Context();
 }
 public RequisicionesPIRepository()
 {
     _ctx = new PI_Context();
 }
 public AutoresIndustrialExtRepository()
 {
     _ctx = new PI_Context();
 }
 public TipoPropiedadIndustrialRepository()
 {
     _db = new PI_Context();
 }
Exemplo n.º 9
0
 public RamaRepository()
 {
     _db = new PI_Context();
 }
Exemplo n.º 10
0
 public AutoresIntDARepository()
 {
     _ctx = new PI_Context();
 }
Exemplo n.º 11
0
 public EstadoDelProcesoRepository()
 {
     _db = new PI_Context();
 }
Exemplo n.º 12
0
 public RamaDARepository()
 {
     _ctx = new PI_Context();
 }
 public PropiedadIndustrialRepository()
 {
     _pictx = new PI_Context();
 }
Exemplo n.º 14
0
 public SolicitudesDARepository()
 {
     _ctx = new PI_Context();
 }
Exemplo n.º 15
0
 public indicadoresPIRepository()
 {
     _pictx = new PI_Context();
 }
Exemplo n.º 16
0
 public PIExternoRepository()
 {
     _ctx = new PI_Context();
 }
Exemplo n.º 17
0
 public HistorialPIRepository()
 {
     _pictx = new PI_Context();
 }