Exemple #1
0
 protected override object PerformCreate(Type type, object toCreate)
 {
     toCreate = DaoRepository.Create(type, toCreate);
     if (CreateAllFiles)
     {
         FileInfo file = new FileInfo(YamlDataDirectory.GetYamlFilePath(type, toCreate.Property("Name").ToString()));
         YamlDataDirectory.Save(file, type, toCreate);
     }
     return(toCreate);
 }
Exemple #2
0
        private void WriteYaml(Type type, object value)
        {
            FileInfo yamlFile = new FileInfo(YamlDataDirectory.GetYamlFilePath(type, value.Property <string>("Name")));

            YamlDataDirectory.Save(yamlFile, type, value);
        }