Mineplex2018-withcommit/Website/packages/T4Scaffolding.1.0.6/tools/EFDbContext/DbContext.vb.t4

18 lines
988 B
Plaintext
Raw Normal View History

2013-08-27 17:14:08 +02:00
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
<#@ Output Extension="vb" #>
Imports System.Data.Entity
<#= T4Scaffolding.Namespaces.BeginVb(Model.DbContextNamespace, Model.DefaultNamespace) #>
Public Class <#= Model.DbContextType #> : Inherits DbContext
' You can add custom code to this file. Changes will not be overwritten.
'
' If you want Entity Framework to drop and regenerate your database
' automatically whenever you change your model schema, add the following
' code to the Application_Start method in your Global.asax file.
' Note: this will destroy and re-create your database with every model change.
'
' System.Data.Entity.Database.SetInitializer(New System.Data.Entity.DropCreateDatabaseIfModelChanges(Of <#= Model.DbContextNamespace #>.<#= Model.DbContextType #>)())
End Class
<#= T4Scaffolding.Namespaces.EndVb(Model.DbContextNamespace, Model.DefaultNamespace) #>