Datasets now serialize/save and deserialize/load properly. Created a test in the CLI project
This commit is contained in:
@@ -2,7 +2,7 @@ namespace SzLib.DataObjects;
|
||||
|
||||
public class SzDataObject
|
||||
{
|
||||
public required string Name;
|
||||
public required string Id;
|
||||
public Dictionary<string, SzField> Fields = [];
|
||||
public required string Name {get; set;}
|
||||
public required string Id {get; set;}
|
||||
public Dictionary<string, SzField> Fields {get; set;} = [];
|
||||
}
|
||||
@@ -2,9 +2,9 @@ namespace SzLib.DataObjects;
|
||||
|
||||
public class SzDataObjectTemplate
|
||||
{
|
||||
public required string Name;
|
||||
public required string Id;
|
||||
public Guid? Uuid;
|
||||
public required string DataObjectType;
|
||||
public Dictionary<string, SzTemplateField> TemplateFields = [];
|
||||
public required string Name {get; set;}
|
||||
public required string Id {get; set;}
|
||||
public Guid? Uuid {get; set;}
|
||||
public required string DataObjectType {get; set;}
|
||||
public Dictionary<string, SzTemplateField> TemplateFields {get; set;} = [];
|
||||
}
|
||||
@@ -2,11 +2,11 @@ namespace SzLib.DataObjects;
|
||||
|
||||
public class SzDataset
|
||||
{
|
||||
public required string Name;
|
||||
public required string Id;
|
||||
public Guid? Uuid;
|
||||
public required string Name {get; set;}
|
||||
public required string Id {get; set;}
|
||||
public Guid? Uuid {get; set;}
|
||||
|
||||
public required string DataObjectType;
|
||||
public required string DataObjectTemplateId;
|
||||
public Dictionary<string, SzDataObject> DataObjects = [];
|
||||
public required string DataObjectType {get; set;}
|
||||
public required string DataObjectTemplateId {get; set;}
|
||||
public Dictionary<string, SzDataObject> DataObjects {get; set;} = [];
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ namespace SzLib.DataObjects;
|
||||
|
||||
public class SzField
|
||||
{
|
||||
public required string Id;
|
||||
public required SzFieldType FieldType;
|
||||
public bool IsList = false;
|
||||
public string Value = "";
|
||||
public required string Id {get; set;}
|
||||
public required SzFieldType FieldType {get; set;}
|
||||
public bool IsList {get; set;} = false;
|
||||
public string Value {get; set;} = "";
|
||||
}
|
||||
@@ -2,10 +2,10 @@ namespace SzLib.DataObjects;
|
||||
|
||||
public class SzTemplateField
|
||||
{
|
||||
public required string Name;
|
||||
public required string Id;
|
||||
public bool IsList = false;
|
||||
public string DefaultValue = "";
|
||||
public bool IsSpecialType = false;
|
||||
public string SpecialTypeValue = "";
|
||||
public required string Name {get; set;}
|
||||
public required string Id {get; set;}
|
||||
public bool IsList {get; set;} = false;
|
||||
public string DefaultValue {get; set;} = "";
|
||||
public bool IsSpecialType {get; set;} = false;
|
||||
public string SpecialTypeValue {get; set;} = "";
|
||||
}
|
||||
Reference in New Issue
Block a user