Missing Migration (#2790)
This commit is contained in:
parent
2b6fd1224f
commit
f443e513d1
11 changed files with 387 additions and 29 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using API.Data;
|
||||
using API.Entities;
|
||||
|
|
@ -75,4 +76,18 @@ public class VolumeBuilder : IEntityBuilder<Volume>
|
|||
_volume.CoverImage = cover;
|
||||
return this;
|
||||
}
|
||||
|
||||
public VolumeBuilder WithCreated(DateTime created)
|
||||
{
|
||||
_volume.Created = created;
|
||||
_volume.CreatedUtc = created.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
|
||||
public VolumeBuilder WithLastModified(DateTime lastModified)
|
||||
{
|
||||
_volume.LastModified = lastModified;
|
||||
_volume.LastModifiedUtc = lastModified.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue