Azure Container App我找不到在门户中添加环境值的方法。
我怎样才能添加到里面Azure Portal?
我正在尝试提升垫表中悬停的行,因此将<tr>悬停时的高度更改为悬停时的高度,但阴影效果的高度未显示在行的底部,但显示在行的顶部、左侧和右侧。
.html
<div class="mat-elevation-z2" #TABLE>
<table mat-table [dataSource]="dataSource" matSort>
<!-- Required Columns... -->
<tr mat-header-row *matHeaderRowDef="columnsToDisplay"></tr>
<tr mat-row *matRowDef="let row; let e = index; columns: columnsToDisplay;"
(mouseover)="onMouseOver(e)" [ngClass] = "{'mat-elevation-z24' : e == mouseOverIndex}"></tr>
</table>
</div>
Run Code Online (Sandbox Code Playgroud)
.ts
mouseOverIndex = -1;
public onMouseOver(index) {
this.mouseOverIndex = index;
}
Run Code Online (Sandbox Code Playgroud)
.css
.mat-row:hover {
cursor: pointer;
}
Run Code Online (Sandbox Code Playgroud)
我在这里缺少什么?
我尝试使用“z24”、“z16”、“z8”等,但没有用。
我正在尝试从 ASP.NET Core 5 中删除 PostgresSQL 数据库表中的所有记录。
但是,我收到此错误:
“FROM”处或附近的语法错误
这是我的代码:
string Query = "DELETE FROM public.\"MyTable\"";
var d = await _context.MyTable.FromSqlRaw(Query).AnyAsync();
Run Code Online (Sandbox Code Playgroud)
如何删除记录FromSQLRaw?
Azure在这里说
750 小时的 B1S VM 和 64 GB X 2 托管磁盘、2 个 P6 SDD
还有一些每月免费,为期 12 个月。
在 Azure 门户中创建 VM 时,有“基础”、“磁盘”和其他选项卡,在“基础”中,我可以选择 B1S VM 的映像大小,但在“磁盘”选项卡中,没有选择 64GB P6 SDD 的托管磁盘的选项。
只有三种选择,即高级 SSD、标准 SSD、标准 HDD。无论我选择什么并继续操作,VM 都会默认使用 128 GB C 驱动器和 4 GB 临时驱动器并开始计费。
我在哪里可以选择免费的 64 GB X 2 托管磁盘、2 个 P6 SDD。
我正在尝试将值分配给Model另一个 at OnGetAsyncinRazor Page以进行一些数据验证,并将它们分配回实际ModelonOnPostAsync以保存数据。
我NullReferenceException在这一行出错Input.TestName = TestData.TestName;
public class TestData
{
[Key]
public int TestID { get; set; }
public string TestName { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
页面模型
private readonly Test.Models.TestContext _context;
public EditModel(Test.Models.TestContext context)
{
_context = context;
}
[BindProperty]
public TestData TestData { get; set; }
[BindProperty]
public InputModel Input { get; set; }
public class InputModel
{
[Required, MaxLength(50), MinLength(3)]
public string TestName { get; …Run Code Online (Sandbox Code Playgroud) azure ×2
angular ×1
angular7 ×1
asp.net-core ×1
c# ×1
css ×1
mat-table ×1
postgresql ×1
razor-pages ×1