}//WriteDatafileSummary private async void WriteBytesToDatabaseAsync(ByteWrapper image) { await Task.Run(() => { var db = new ImageAnalysisDAL.CaptureDb(ConfigurationManager.ConnectionStrings["LOCALDB"].ConnectionString); db.SaveDetectionImage(captureId, detectionId, image.bytes, image.sequenceNumber); }); }
public CameraModel cameraModel; //set by client /// <summary> /// Ggets the config data from the database and populates the list /// </summary> public void LoadTemplate() { DataTable dt = new ImageAnalysisDAL.CaptureDb(ConfigurationManager.ConnectionStrings["LOCALDB"].ToString()).ReturnDetectionConfiguration(); foreach (DataRow dr in dt.Rows) { list.Add(new MotionSensorConfig(dr)); } }
public CameraModel cameraModel; //set by client /// <summary> /// Ggets the config data from the database and populates the list /// </summary> public void LoadTemplate() { DataTable dt = new ImageAnalysisDAL.CaptureDb(ConfigurationManager.ConnectionStrings["LOCALDB"].ToString()).ReturnDetectionConfiguration(); foreach(DataRow dr in dt.Rows) { list.Add(new MotionSensorConfig(dr)); } }