diff --git a/bbdd.vb b/bbdd.vb index d8c1cf6..0fdfcdf 100644 --- a/bbdd.vb +++ b/bbdd.vb @@ -10,4 +10,12 @@ Public Class bbdd Return "** desconocida **" End Try End Function + Public Shared Function ObtieneIPSQLServer(bd As DbContext) As String + Try + Dim sIp As String = bd.Database.SqlQuery(Of String)($"select CONNECTIONPROPERTY('client_net_address') AS client_net_address;").ToList.First + Return sIp + Catch ex As Exception + Return "** desconocida **" + End Try + End Function End Class diff --git a/tsEFCore8.vbproj b/tsEFCore8.vbproj index ff72b6a..e573d65 100644 --- a/tsEFCore8.vbproj +++ b/tsEFCore8.vbproj @@ -11,11 +11,12 @@ net8.0 tsEFCore8 net8.0, libreria - 1.0.5 + 1.0.6 Pedro Tecnosis S.A Utilidades Entity Framework compatibles con EF Core 8. + - 1.0.6 2026-08-25 Se agrega función para obtener la IP del servidor SQL Server - 1.0.5 2026-03-18 Se comprueba el atributo MaxLength en ObtieneLongitudCampo en caso de que no se encuentre la propiedad - Se agrega README.md