22 lines
534 B
C#
22 lines
534 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DataBase;
|
|
|
|
internal class Article
|
|
{
|
|
[Key]
|
|
public required string Id { get; set; }
|
|
public required string Title { get; set; }
|
|
public required string Tema { get; set; }
|
|
public DateTime DateCreat { get; set; }
|
|
|
|
[ForeignKey("ArticleId")]
|
|
public List<Author>? Authors { get; set; }
|
|
}
|