I'm have classes and need to make data tables as follow
Class 1
public class EventType
{ public String Id { get; private set; }
public int Severity { get; set; }
public EventTypeTemplate Template { get; set; }
public IDictionary<String, String> Params { get; set; }
public EventType(string id)
{ Id = id; Params = new Dictionary<string, string>();}}
And second class
public class EventTypeTemplate
{public String Id { get; private set; }
public int Severity { get; set; }
public String Title { get; set; }
public String Description { get; set; }
public IList<String> Categories { get; private set; }
public IList<String> Queries { get; private set; }
public EventTypeTemplate(string id)
{ Id = id;Categories = new List<string>();
Queries = new List<string>(); } }
For class 1(EventType) I create the table
As table name EventType
Column type
Id string
Severity int
And I don’t know how to enterprate other two property into table column name and type
public EventTypeTemplate Template { get; set; }
public IDictionary<String, String> Params { get; set; }
for second class
I create table name EventTypeTemplate
Column Type
Id string
Severity int
Title string
Description string
But I don’t know how to enterprate follow property into table column name and type
public IList<String> Categories { get; private set; }
public IList<String> Queries { get; private set; }
any help will be appreciated
Class 1
public class EventType
{ public String Id { get; private set; }
public int Severity { get; set; }
public EventTypeTemplate Template { get; set; }
public IDictionary<String, String> Params { get; set; }
public EventType(string id)
{ Id = id; Params = new Dictionary<string, string>();}}
And second class
public class EventTypeTemplate
{public String Id { get; private set; }
public int Severity { get; set; }
public String Title { get; set; }
public String Description { get; set; }
public IList<String> Categories { get; private set; }
public IList<String> Queries { get; private set; }
public EventTypeTemplate(string id)
{ Id = id;Categories = new List<string>();
Queries = new List<string>(); } }
For class 1(EventType) I create the table
As table name EventType
Column type
Id string
Severity int
And I don’t know how to enterprate other two property into table column name and type
public EventTypeTemplate Template { get; set; }
public IDictionary<String, String> Params { get; set; }
for second class
I create table name EventTypeTemplate
Column Type
Id string
Severity int
Title string
Description string
But I don’t know how to enterprate follow property into table column name and type
public IList<String> Categories { get; private set; }
public IList<String> Queries { get; private set; }
any help will be appreciated