Beispiel #1
0
        IDataDefinitionExport IDataDefinitionExport.Clone()
        {
            IDataDefinitionExport result = new IDataDefinitionExportImpl(ExportType, Name);

            result.Reference = Reference;
            return(result);
        }
Beispiel #2
0
        bool IMapping.FromStringArray(List <string> input)
        {
            foreach (string inp in input)
            {
                IDataDefinitionExport export = new IDataDefinitionExportImpl();
                export.FromString(inp);
                ExportMaps.Add(export);
            }

            return(true);
        }
Beispiel #3
0
        protected override bool Retrieve(IPersistence persistence, ref ePersistence phase)
        {
            base.Retrieve(persistence, ref phase);
            switch (phase)
            {
            case ePersistence.Initial:
                List <string> data = new List <string>();
                data.AddRange(persistence.GetFieldValues(Constants.DataDefinitionExport, ""));
                foreach (string json in data)
                {
                    if (json != "")
                    {
                        IDataDefinitionExportImpl export = JsonConvert.DeserializeObject <IDataDefinitionExportImpl>(json);
                        Exports.Add(export);
                    }
                }

                break;
            }

            return(true);
        }