基於在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