- 1.0.6 2026-08-25 Se agrega función para obtener la IP del servidor SQL Server
This commit is contained in:
8
bbdd.vb
8
bbdd.vb
@@ -10,4 +10,12 @@ Public Class bbdd
|
|||||||
Return "** desconocida **"
|
Return "** desconocida **"
|
||||||
End Try
|
End Try
|
||||||
End Function
|
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
|
End Class
|
||||||
|
|||||||
@@ -11,11 +11,12 @@
|
|||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<PackageId>tsEFCore8</PackageId>
|
<PackageId>tsEFCore8</PackageId>
|
||||||
<PackageTags>net8.0, libreria</PackageTags>
|
<PackageTags>net8.0, libreria</PackageTags>
|
||||||
<Version>1.0.5</Version>
|
<Version>1.0.6</Version>
|
||||||
<Authors>Pedro</Authors>
|
<Authors>Pedro</Authors>
|
||||||
<Company>Tecnosis S.A</Company>
|
<Company>Tecnosis S.A</Company>
|
||||||
<Description>Utilidades Entity Framework compatibles con EF Core 8.</Description>
|
<Description>Utilidades Entity Framework compatibles con EF Core 8.</Description>
|
||||||
<PackageReleaseNotes>
|
<PackageReleaseNotes>
|
||||||
|
- 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
|
- 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
|
- Se agrega README.md
|
||||||
</PackageReleaseNotes>
|
</PackageReleaseNotes>
|
||||||
|
|||||||
Reference in New Issue
Block a user