private static void CargarEmpresa(Empresa empresa, SqlCeConnection conn, LainsaSci ctx, RadProgressContext context) { TEmpresa temp = new TEmpresa() { EmpresaId = empresa.EmpresaId, Nombre = empresa.Nombre }; CntSciTerminal.TSave(temp, conn); }
private bool GetEmpresa(SqlCeConnection conn) { TEmpresa emp = CntSciTerminal.GetTEmpresa(conn); var rs = (from d in ctx.Empresas where d.EmpresaId == emp.EmpresaId select d).FirstOrDefault <Empresa>(); if (rs != null) { empresa = rs; return(true); } return(false); }