コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: Fabricio-G/TheProject
        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)
 {
 }