static Class2()
{
_dynamicFieldsBase = new Dictionary<string, FieldMetadata>
{
{"DynamicString", new FieldMetadata
{
FieldName = "DynamicString",
PropertyType = typeof(string),
FieldType = DynamicContentTools.GetSuggestedFieldType(typeof(string)),
DisplayName = "Dynamic string",
CanRead = true,
CanWrite = true
}
},
{"DynamicInteger", new FieldMetadata
{
FieldName = "DynamicInteger",
PropertyType = typeof(int),
FieldType = DynamicContentTools.GetSuggestedFieldType(typeof(int)),
DisplayName = "Dynamic integer",
CanRead = true,
CanWrite = true
}
},
{"RepoDataType", new FieldMetadata
{
FieldName = "RepoDataType",
PropertyType = typeof(DataType),
FieldType = DynamicContentTools.GetSuggestedFieldType(typeof(DataType)),
DisplayName = "Repository data type",
CanRead = true,
CanWrite = true
}
},
{"VeryDynamicString", new FieldMetadata
{
FieldName = "VeryDynamicString",
PropertyType = typeof(string),
FieldType = DynamicContentTools.GetSuggestedFieldType(typeof(string)),
DisplayName = "Very dynamic string",
CanRead = true,
CanWrite = true
}
},
{"VeryDynamicInteger", new FieldMetadata
{
FieldName = "VeryDynamicInteger",
PropertyType = typeof(int),
FieldType = DynamicContentTools.GetSuggestedFieldType(typeof(int)),
DisplayName = "Very dynamic integer",
CanRead = true,
CanWrite = true
}
}
};
}