Se traslada fuentes de tfs a git

This commit is contained in:
2025-05-30 11:57:16 +02:00
commit b17f1de381
7 changed files with 680 additions and 0 deletions

13
bbdd.vb Normal file
View File

@@ -0,0 +1,13 @@
Imports Microsoft.EntityFrameworkCore
Public Class bbdd
Public Shared Function ObtieneIPMysql(bd As DbContext) As String
Try
Dim sConexion As String = bd.Database.SqlQuery(Of String)($"select host from information_schema.processlist WHERE ID=connection_id();").ToList.First
Dim sIP As String = sConexion.Split(":")(0)
Return sIP
Catch ex As Exception
Return "** desconocida **"
End Try
End Function
End Class