基于在EF6数据库值我创建使用EF6。我的模型的模型文字是这样的: public partial class Good
{
public Good()
{
this.InnoviceDetails = new HashSet<InvoiceDetail>();
}
public int Id { get; set; }
public
我正在使用'UTC'作为时区编写我的应用程序。我有每个用户的timezone列。我将在表示层中使用此值。日期/时间输出和输入将使用它。 当没有当前用户时,我还将在视图图层中显示日期和时间。我希望回退时区是应用程序之一。我想避免每次都放这样的逻辑: $now = new Carbon();
if (!Auth::guest()) {
$now->setTimezone(Auth::use