private ObjectSearchContext GetContext() { var contextOptions = new DbContextOptionsBuilder <ObjectSearchContext>() .UseSqlServer("Server=.\\SQLEXPRESS2017; Initial Catalog=ObjectSearchDB; Trusted_Connection=true;") .Options; var context = new ObjectSearchContext(contextOptions); // create and configure context // see: https://docs.microsoft.com/en-us/ef/core/miscellaneous/testing/ return(context); }
public MissionRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }
public UserRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }
public TargetRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }
public ImageRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }
public OperationsRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }
public DetectedObjectRepository(ObjectSearchContext objectSearchContext) { _objectSearchContext = objectSearchContext; }