贾荣国
3 years ago
32 changed files with 6210 additions and 82 deletions
@ -0,0 +1,14 @@ |
|||||
|
namespace Win_in.Sfs.Scp.WebApi; |
||||
|
|
||||
|
public interface IHasErrorMessage |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 错误代码
|
||||
|
/// </summary>
|
||||
|
int ErrorCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 错误信息
|
||||
|
/// </summary>
|
||||
|
string ErrorMessage { get; set; } |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,34 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class AddErrorCodeAndErrorMessageToPart : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Part", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Part", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Part"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Part"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,97 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class AddErrorCodeAndErrorMessageToAll : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Suppliers", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Suppliers", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_PO", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_PO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_UnplannedReceipt"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_UnplannedReceipt"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Suppliers"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Suppliers"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_Receipt"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_Receipt"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorCode", |
||||
|
table: "WebApi_PO"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErrorMessage", |
||||
|
table: "WebApi_PO"); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue