public void Initialize() { Connection = new SqliteConnection("DataSource=:memory:"); Connection.Open(); Options = new DbContextOptionsBuilder <RpvDbContext>().UseSqlite(Connection).Options; DbContext = new RpvDbContext(Options); DbContext.Database.EnsureDeleted(); DbContext.Database.EnsureCreated(); ResourceController = new ResourceController(DbContext); }
public void Initialize() { Connection = new SqliteConnection("DataSource=:memory:"); Connection.Open(); Options = new DbContextOptionsBuilder <RpvDbContext>().UseSqlite(Connection).Options; DbContext = new RpvDbContext(Options); DbContext.Database.EnsureCreated(); ProjectController = new ProjectController(DbContext); ActivityController = new ActivityController(DbContext); NetworkController = new NetworkController(DbContext); }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public ResourceController(RpvDbContext context) { Context = context; }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public ActivityController(RpvDbContext context) { Context = context; }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public AssignController(RpvDbContext context) { Context = context; }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public ScopeController(RpvDbContext context) { Context = context; }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public ProjectController(RpvDbContext context) { Context = context; }
/// <summary>DBコンテキストの依存性注入</summary> /// <param name="context">DBコンテキスト</param> public NetworkController(RpvDbContext context) { Context = context; }