예제 #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);
        }
예제 #2
0
        protected void Seed(SystemContext context)

        {
        }
예제 #3
0
 public void CreateUser(SystemContext context)
 {
 }