From b6e1a27ace1b746d413cdc3ff2691384b61b126b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Mon, 16 Sep 2024 20:08:31 +0800 Subject: [PATCH] 1 --- asg_form/Controllers/Dbset.cs | 3 +-- azure-pipelines.yml | 42 ++++++++++++++++------------------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/asg_form/Controllers/Dbset.cs b/asg_form/Controllers/Dbset.cs index dc66206..ad0581e 100644 --- a/asg_form/Controllers/Dbset.cs +++ b/asg_form/Controllers/Dbset.cs @@ -1,7 +1,6 @@  using asg_form.Controllers.Store; using asg_form.Controllers.Team; -using asg_form.Controllers.Teamregistration; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.DataEncryption; @@ -238,7 +237,7 @@ namespace asg_form.Controllers public DbSet T_Storeinfo { get; set; } public DbSet T_config { get; set; } public DbSet T_Task { get; set; } - public DbSet T_Comform { get; set; } + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { string connStr = @"Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;TrustServerCertificate=true"; diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4fa8f71..e0b818a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,23 +1,19 @@ -# .NET Desktop -# Build and run tests for .NET Desktop or Windows classic desktop solutions. -# Add steps that publish symbols, save build artifacts, and more: -# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net - -trigger: -- master - -pool: - vmImage: 'windows-latest' - -variables: - solution: '*.sln' - buildPlatform: 'Any CPU' - buildConfiguration: 'Release' - -steps: -- task: NuGetToolInstaller@1 - -- task: NuGetCommand@2 - inputs: - restoreSolution: '$(solution)' - +# Starter pipeline + # Start with a minimal pipeline that you can customize to build and deploy your code. + # Add steps that build, run tests, deploy, and more: + # https://aka.ms/yaml + variables: # pipeline-level + branch: 'azure_branch' + + trigger: + - master + pool: + vmImage: 'ubuntu-latest' + steps: + - script: | + git remote add github https://:@github.com/Brian-Ding/ant-design-blazor.git + git checkout -b $(branch) + git push -u github $(branch) + + + displayName: 'Command Line Script' \ No newline at end of file