@Resources.Actions | -@Resources.Title | -@Resources.InListQuestion | -@Resources.LastUpdated | -
---|---|---|---|
- @Resources.Edit - | -
- @pg.Title
- @if (pg.Id == Model.WebLog.DefaultPage)
- {
- |
- @pg.UpdatedOn.ToString(Resources.DateFormatString) | -
This is your default home page.
", - Revisions = new[] - { - new PageRevision - { - Id = WebLogDbContext.NewId(), - AsOf = DateTime.UtcNow, - SourceType = RevisionSource.Html, - Text = "This is your default home page.
" - } - } - }; - await db.Pages.AddAsync(home); - - // Add the details - var timeZone = TimeZoneInfo.Local.Id; - if (!TimeZoneInfo.Local.HasIanaId) - { - timeZone = TimeZoneInfo.TryConvertWindowsIdToIanaId(timeZone, out var ianaId) - ? ianaId - : throw new TimeZoneNotFoundException($"Cannot find IANA timezone for {timeZone}"); - } - var details = new WebLogDetails - { - Name = args[2], - UrlBase = args[1], - DefaultPage = home.Id, - TimeZone = timeZone - }; - await db.WebLogDetails.AddAsync(details); - - await db.SaveChangesAsync(); - - Console.WriteLine($"Successfully initialized database for {args[2]} with URL base {args[1]}"); -} diff --git a/src/MyWebLog.CS/Properties/Resources.Designer.cs b/src/MyWebLog.CS/Properties/Resources.Designer.cs deleted file mode 100644 index 7046e4e..0000000 --- a/src/MyWebLog.CS/Properties/Resources.Designer.cs +++ /dev/null @@ -1,459 +0,0 @@ -//------------------------------------------------------------------------------ -//