public ProductionRepository( SapContext context, IntranetContext intranetContext, Fmsb2Context fmsb2Context, IconicsContext iconicsContext ) { _context = context ?? throw new ArgumentNullException(nameof(context)); _intranetContext = intranetContext ?? throw new ArgumentNullException(nameof(intranetContext)); _fmsb2Context = fmsb2Context ?? throw new ArgumentNullException(nameof(fmsb2Context)); _iconicsContext = iconicsContext ?? throw new ArgumentNullException(nameof(iconicsContext)); }
/// <summary> /// Initializes test data /// </summary> public static void InitializeTestData() { using (var context = new IntranetContext()) { var connection = (SqlConnection)context.Database.Connection; var command = new SqlCommand { Connection = connection }; connection.Open(); DeleteAll(command); // Insert Test SetAutoIncrementOnTable(connection, "Model", true); InsertModule(command); SetAutoIncrementOnTable(connection, "Model", false); } }
public DefaultFinishActionsDecorationFilter(IntranetContext context) { this.Context = context; }
public FormulariosController(IntranetContext context) { _context = context; }
public EosController(IntranetContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public UsuariosController(IntranetContext context) { _context = context; }
public CwaContentValidationFilter(IntranetContext context) { this.Context = context; }
public SalasController(IntranetContext context) { _context = context; }
public KpiTargetService(IntranetContext context, Fmsb2Context fmsb2Context) : base(fmsb2Context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _fmsb2Context = fmsb2Context ?? throw new ArgumentNullException(nameof(fmsb2Context)); }
public Noticias1Controller(IntranetContext context) { _context = context; }
public SolicitudVacacionesController(IntranetContext context) { _context = context; }
public IntranetLibraryRepository(IntranetContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public EmpleadosController(IntranetContext context) { _context = context; }
public UnitOfWork(IDatabaseFactory dbFactory) { this.dbFactory = dbFactory; dataContext = dbFactory.DataContext; }
public ImagePathResolver(IntranetContext context) { this.Context = context; }
public DatabaseFactory() { dataContext = new IntranetContext(); }
public ContactoesController(IntranetContext context) { _context = context; }