コード例 #1
0
 public PlaylistsController(IVideoManagerContext context)
 {
     dbAccessor = new DbAccessor(context);
 }
コード例 #2
0
 /// <summary>
 /// The constructor which initializes the controller with the user supplied instance of database accessor.
 /// </summary>
 /// <param name="context">the IVideoManager type instance</param>
 public TagsController(IVideoManagerContext context)
 {
     dbAccessor = new DbAccessor(context);
 }
コード例 #3
0
 public DbAccessor(string conn)
 {
     //  this.context = new masterEntities();
     this.context = new SQLiteDbContext(conn);
 }
コード例 #4
0
 public DbAccessor(IVideoManagerContext context)
 {
     this.context = context;
 }
コード例 #5
0
 public DbAccessor()
 {
     this.context = new masterEntities();
     // this.context = new SQLiteDbContext(conn);
 }