add constructors for DatabaseField and DatabaseRecord
This commit is contained in:
parent
f1b9f2a6b9
commit
45a842832c
@ -34,6 +34,12 @@ namespace UniversalEditor.ObjectModels.Database
|
||||
}
|
||||
}
|
||||
|
||||
public DatabaseField(string name = "", object value = null)
|
||||
{
|
||||
Name = name;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public string Name { get; set; } = String.Empty;
|
||||
public object Value { get; set; } = null;
|
||||
|
||||
|
||||
@ -19,6 +19,14 @@ namespace UniversalEditor.ObjectModels.Database
|
||||
}
|
||||
}
|
||||
|
||||
public DatabaseRecord(params DatabaseField[] fields)
|
||||
{
|
||||
for (int i = 0; i < fields.Length; i++)
|
||||
{
|
||||
Fields.Add(fields[i]);
|
||||
}
|
||||
}
|
||||
|
||||
private DatabaseField.DatabaseFieldCollection mvarFields = new DatabaseField.DatabaseFieldCollection ();
|
||||
public DatabaseField.DatabaseFieldCollection Fields
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user