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); }
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)); } } }