-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyJsonConnection.vb
53 lines (51 loc) · 1.29 KB
/
MyJsonConnection.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Imports Microsoft.VisualBasic
Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Data.Entity
Namespace DXWebApplication26
Public Class MyJsonConnection
Private privateID As Integer
<Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)> _
Public Property ID() As Integer
Get
Return privateID
End Get
Set(ByVal value As Integer)
privateID = value
End Set
End Property
Private privateName As String
Public Property Name() As String
Get
Return privateName
End Get
Set(ByVal value As String)
privateName = value
End Set
End Property
Private privateConnectionString As String
Public Property ConnectionString() As String
Get
Return privateConnectionString
End Get
Set(ByVal value As String)
privateConnectionString = value
End Set
End Property
End Class
Friend Class JsonConnectionContext
Inherits DbContext
Private privateConnections As DbSet(Of MyJsonConnection)
Public Property Connections() As DbSet(Of MyJsonConnection)
Get
Return privateConnections
End Get
Set(ByVal value As DbSet(Of MyJsonConnection))
privateConnections = value
End Set
End Property
Public Sub New()
MyBase.New("ConnectionsStorage")
End Sub
End Class
End Namespace