Exemple #1
0
        public void deleteFlatFile(int flatFileIdId)
        {
            FlatFilesParameter flatFile = ConfigurationDB.FlatFilesParameters.Where(param => param.FlatFileParameterId == flatFileIdId).ToList()[0];

            ConfigurationDB.FlatFilesParameters.Remove(flatFile);
            ConfigurationDB.SaveChanges();
        }
Exemple #2
0
        public void updateFlatFile(int id, string location)
        {
            FlatFilesParameter flatFile = ConfigurationDB.FlatFilesParameters.Where(param => param.FlatFileParameterId == id).ToList()[0];

            flatFile.Location = location;
            ConfigurationDB.SaveChanges();
        }
Exemple #3
0
        public void saveFlatFiles(string location)
        {
            FlatFilesParameter flatFile = new FlatFilesParameter();

            flatFile.Location = location;

            ConfigurationDB.FlatFilesParameters.Add(flatFile);
            ConfigurationDB.SaveChanges();
        }
Exemple #4
0
        public FlatFilesParameter getFlatFile(int id)
        {
            FlatFilesParameter flatFile = ConfigurationDB.FlatFilesParameters.Where(param => param.FlatFileParameterId == id).ToList()[0];

            return(flatFile);
        }