示例#1
0
 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);
 }
示例#2
0
 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);
 }
示例#3
0
 /// <summary>DBコンテキストの依存性注入</summary>
 /// <param name="context">DBコンテキスト</param>
 public ResourceController(RpvDbContext context)
 {
     Context = context;
 }
示例#4
0
 /// <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;
 }
示例#6
0
 /// <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;
 }