Ejemplo n.º 1
0
        public Database()
        {
            // This hack ensures that EntityFramework.SqlServer is copied to the output folder
            // for project referencing this class library.
            Type ensureUsageOfSqlServer = typeof(System.Data.Entity.SqlServer.SqlProviderServices);

            string connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;

            ReallyDropDatabase(connectionString);

            System.Data.Entity.Database.SetInitializer(new TestInitializer());

            context = new RepositoryContext();
            context.Database.Initialize(true);
        }
 public MeasurementUnitRepository(RepositoryContext context)
 {
     Context = context;
 }
Ejemplo n.º 3
0
 public DataPointRepository(RepositoryContext context)
 {
     Context = context;
 }
Ejemplo n.º 4
0
 public SecurityRepository(RepositoryContext context)
 {
     Context = context;
 }
Ejemplo n.º 5
0
 public DeviceRepository(RepositoryContext context)
 {
     Context = context;
 }