This question is locked. New answers and comments are not allowed.
Hi,
I have a set of classes already and I am trying to map them to database.
However, some of my properties are complex types such as custom class, structure.
How can I persist those properties using complex types?
Here are sample codes similar to my classes.
I need to persist Book class to database.
How do I configure the MainAuthor, CoAuthor and Index properties (in forward mapping wizard or other ways)?
Thanks.
I have a set of classes already and I am trying to map them to database.
However, some of my properties are complex types such as custom class, structure.
How can I persist those properties using complex types?
Here are sample codes similar to my classes.
I need to persist Book class to database.
How do I configure the MainAuthor, CoAuthor and Index properties (in forward mapping wizard or other ways)?
Thanks.
Public
Class
Book
Public
Property
Title
As
String
Public
Property
PublishDate
As
Date
Public
Property
Publisher
As
String
Public
Property
ISBN
As
String
Public
Property
MainAuthor
As
Author
Public
Property
CoAuthor
As
Author
Public
Property
Index
As
BookIndexCode
End
Class
Public
Class
Author
Public
Property
FirstName
As
String
Public
Property
LastName
As
String
Public
Property
Expertise
As
String
End
Class
Public
Structure
BookIndexCode
Dim
Category
As
Integer
Dim
Subcategory
As
Integer
Dim
Segment
As
Integer
Dim
SerialNumber
As
Integer
End
Structure