This question is locked. New answers and comments are not allowed.
I have an existing solution with hard-coded test data. I am now ready to persist that classes to the database and wanted to use OpenAccess for this. How can I simply make the below class persistable? Can I just inherit something from OA or why can't I just dragg the class to the "Entity Diagram" for auto-creation? Thanks for any help.
[DataContract(Namespace =
""
)]
public
class
Element
{
[DataMember(Name =
"id"
, EmitDefaultValue =
false
)]
public
Guid Id
{
get
;
set
;
}
[DataMember(Name =
"name"
, EmitDefaultValue =
false
)]
public
string
Name
{
get
;
set
;
}
[DataMember(Name =
"date"
, EmitDefaultValue =
false
)]
public
DateTime SomeDate
{
get
;
set
;
}
}