Exemplo n.º 1
0
        protected void WriteAssociations()
        {
            var driver = new SeparatedTextDriver();

            TableWriter.Write <XAssociation>(Export.PATH_ASSOCIATIONS, _rows.OfType <XUser>().Select(v => new XAssociation(v.Neptun, v.EducationProgram, v.Identifier)), driver);
            Log.Write(Export.PATH_ASSOCIATIONS);
        }
Exemplo n.º 2
0
        protected void ReadAssociations()
        {
            var driver = new SeparatedTextDriver();

            if (File.Exists(Export.PATH_ASSOCIATIONS))
            {
                _associations = TableReader.Read <XAssociation>(Export.PATH_ASSOCIATIONS, driver).ToDictionary(ass => ass.Key, ass => ass.Identifier);
                if (_associations.Count > 0)
                {
                    Provision.ContinueFrom(typeof(XUser), _associations.Max(pair => pair.Value));
                }
            }
        }