Add project files.
This commit is contained in:
19
ConstructorApp.EntityLayer/Entities/ProjectGallery.cs
Normal file
19
ConstructorApp.EntityLayer/Entities/ProjectGallery.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ConstructorApp.EntityLayer.Entities
|
||||
{
|
||||
public class ProjectGallery
|
||||
{
|
||||
[Key]
|
||||
public int ProjectGalleryID { get; set; }
|
||||
[StringLength(100)]
|
||||
public string? ImageUrl { get; set; } // Logo görsel yolu
|
||||
// Proje Seçimi (Foreign Key)
|
||||
[Required]
|
||||
public int ProjectID { get; set; }
|
||||
|
||||
[ForeignKey("ProjectID")]
|
||||
public virtual Project? Project { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user