(MVC) MVC (2018)

<<назад EF_Config.vb (Contoso University).

   1:  Imports Microsoft.VisualBasic
   2:  Imports System
   3:   
   4:  Public Class EF_Config
   5:      Inherits System.Data.Entity.DbConfiguration
   6:   
   7:      Public Sub New()
   8:          'SetExecutionStrategy("System.Data.SqlClient", Function() New System.Data.Entity.SqlServer.SqlAzureExecutionStrategy())
   9:          System.Data.Entity.Infrastructure.Interception.DbInterception.Add(New Log1.InterceptorLogging())
  10:          System.Data.Entity.Infrastructure.Interception.DbInterception.Add(New Log1.InterceptorTransientErrors())
  11:      End Sub
  12:  End Class


Comments ( )
Link to this page: //www.vb-net.com/EF-missing-FAQ/Code/EF_Config.vb.htm
< THANKS ME>