Exemple #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);
        }
        protected void Seed(SystemContext context)

        {
        }
 public void CreateUser(SystemContext context)
 {
 }