Beispiel #1
0
        /// <summary>
        /// Load data from file path
        /// </summary>
        /// <param name="filePath">File path</param>
        public void Load(string filePath)
        {
            FilePath = filePath;

            var content = string.Empty;

            using (var sr = new StreamReader(filePath))
            {
                content = sr.ReadToEnd();
                sr.Close();
            }
            Data = JsonConvert.DeserializeObject <SqlGeneratorArchiveData>(content);
        }
Beispiel #2
0
 /// <summary>
 /// CTOR
 /// </summary>
 /// <param name="filePath">File path</param>
 /// <param name="content">Data to save</param>
 public SqlGeneratorArchive(string filePath, SqlGeneratorArchiveData content)
 {
     FilePath = filePath;
     Data     = content;
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="content"></param>
 public SqlGeneratorArchive(SqlGeneratorArchiveData content)
 {
     Data = content;
 }
Beispiel #4
0
 /// <summary>
 /// CTOR
 /// </summary>
 public SqlGeneratorArchive()
 {
     Data = new SqlGeneratorArchiveData();
 }