Esempio n. 1
0
        /// <summary>
        /// Inserts a new snapshot
        /// </summary>
        /// <param name="snapshot">Snapshot instance</param>
        public void InsertSnapshot(SnapshotDetail snapshot)
        {
            CreateSnapshotTable();

            using (var db = new PetaPoco.Database(_snapshotConnectionStringName))
            {
                db.Insert(SnapshotTableName, "Id", snapshot);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Inserts a new snapshot
        /// </summary>
        /// <param name="snapshot">Snapshot instance</param>
        public void InsertSnapshot(SnapshotDetail snapshot)
        {
            CreateSnapshotTable();

            using (var db = new PetaPoco.Database(_snapshotConnectionStringName))
            {
                db.Insert(SnapshotTableName, "Id", snapshot);
            }
        }