我正在运行以下查询
aws dynamodb query `
--table-name user`
--key-condition-expression "datecreated = :d" `
--expression-attribute-values "{ ':d': { 'S': '2018-08-15' } }" --endpoint-url http://localhost:8000
Run Code Online (Sandbox Code Playgroud)
dynamodb甚至不知道双引号是什么吗?
System.Threading.Tasks.Task OnGetAsync(),Void OnGet()
我在Microsoft Visual Studio 2017中构建.NET Core 2.1应用程序时收到此错误.这是我认为其中包含错误的视图.它是主要的index.cshtml razor页面.
public class IndexModel : PageModel
{
private readonly AppDbContext _db;
public IndexModel(AppDbContext db)
{
_db = db;
}
public IList<Customer> Customers { get; private set; }
public async Task OnGetAsync()
{
Customers = await _db.Customers.AsNoTracking().ToListAsync();
}
public async Task<IActionResult> OnPostDeleteAsync(int id)
{
var contact = await _db.Customers.FindAsync(id);
if (contact != null)
{
_db.Customers.Remove(contact);
await _db.SaveChangesAsync();
}
return RedirectToPage();
}
public void OnGet()
{
}
}
Run Code Online (Sandbox Code Playgroud) 使用以下命令在docker中创建了一个桥接网络:
docker network create blognetwork
Run Code Online (Sandbox Code Playgroud)
并在该网络中使用以下内容创建了一个容器:
docker run --name=blogdb --network=blognetwork -p 3306:3306 -e --bind-address=0.0.0.0 -e=MYSQL_ROOT_PASSWORD=mypassword -detach mysql
Run Code Online (Sandbox Code Playgroud)
如何从Windows主机访问“博客网络”中新容器的IP地址?
我如何单独获取表格XXXX的IP地址?我知道我可以使用以下命令获取包含此数据的大型json输出:
docker network inspect blognetwork
Run Code Online (Sandbox Code Playgroud)