Esempio n. 1
0
        public UnitOfWork()
        {
            var builder = new DbContextOptionsBuilder <SystemContext>();

            builder.UseSqlServer(DbConfig.Conexion.GetConnectionString("DefaultConnection"));

            // Stop client query evaluation
            builder.ConfigureWarnings(w => w.Throw(RelationalEventId.QueryClientEvaluationWarning));
            context = new SystemContext(builder.Options);
        }
Esempio n. 2
0
        protected void Seed(SystemContext context)

        {
        }
Esempio n. 3
0
 public void CreateUser(SystemContext context)
 {
 }