假设我有以下 Shiny ui 代码:
fluidRow(
column(
width=4
),
column(
width=8
)
)
Run Code Online (Sandbox Code Playgroud)
如何绘制第一列的右边框?
我刚刚开始使用EF Core和Net Core,遇到了一个我无法找到答案的问题.
我正在使用一个使用SQLite数据库进行存储的控制台应用程序.我现在正在测试一些东西并且使用上下文工作正常.我的示例程序运行正常.请注意,我最初使用迁移来创建数据库.
现在最终当我完成这个应用程序时,我想确保数据库存在.正如其他帖子所述,这应该是完成的ctx.Database.Migrate().但是,我无法访问此方法.所以我的问题是我需要做什么才能访问它?我错过了一个添加扩展方法的包吗?我需要配置更多东西吗?
请原谅这个非常基本的问题,但我找不到任何相关的问题.因此,如果我不知道在哪里看,我也会对阅读建议感到高兴.
using System;
using MyLog.NetCore.Models;
using MyLog.NetCore.DataAccess;
namespace MyLog.NetCore
{
internal class Program
{
#region Private Methods
private static void Main(string[] args)
{
using (var ctx = new MyLogContext())
{
ctx.Add(new PartialLogEntry { PartialLogEntryID = 1, StartDateTime = 1, Title = "Test" });
var count = ctx.SaveChanges();
Console.WriteLine($"{count} changes saved to database!");
Console.WriteLine();
Console.WriteLine("All partial lof entries in database:");
foreach (var entry in ctx.PartialLogEntries)
{
Console.WriteLine($"ID: {entry.PartialLogEntryID}\tStart: {entry.StartDateTime}\tTitle: {entry.Title}");
}
}
Console.ReadLine();
} …Run Code Online (Sandbox Code Playgroud)