postit and them also
This commit is contained in:
parent
de616809ae
commit
fa7d6242f1
18 changed files with 5322 additions and 121 deletions
|
|
@ -385,6 +385,10 @@ namespace Yavsc.Models
|
|||
|
||||
public DbSet<BlogSpotPublication> blogSpotPublications { get; set; }
|
||||
|
||||
public DbSet<UploadedFile> UploadedFiles { get; set; }
|
||||
|
||||
public DbSet<BlogAttachedFile> BlogAttachedFiles { get; set; }
|
||||
|
||||
public DbSet<Client> Clients { get; set; }
|
||||
public DbSet<ClientIdPRestriction> ClientIdPRestrictions { get; set; }
|
||||
public DbSet<ClientProperty> ClientProperties { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Org.BouncyCastle.Crypto.Modes;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Yavsc.Models.Blog
|
||||
{
|
||||
|
|
@ -34,11 +35,12 @@ namespace Yavsc.Models.Blog
|
|||
/// <value></value>
|
||||
public string ContentType { get; set; }
|
||||
}
|
||||
|
||||
[PrimaryKey(nameof(FileId), nameof(PostId))]
|
||||
public class BlogAttachedFile
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Post Id
|
||||
/// File Id (part of composite key)
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public long FileId { get; set; }
|
||||
|
|
@ -47,7 +49,7 @@ namespace Yavsc.Models.Blog
|
|||
public virtual UploadedFile File { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Post Id
|
||||
/// Post Id (part of composite key)
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public long PostId { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue