referans tablosu üretildi. Türü ve Kodu için kontrol sağlandı.

This commit is contained in:
2025-08-10 17:21:52 +03:00
parent 2ab4d14a58
commit ab7878a43b
5 changed files with 356 additions and 0 deletions

35
Models/Referans.cs Normal file
View File

@@ -0,0 +1,35 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms.VisualStyles;
namespace DugunSalonu.Models
{
public class Referans
{
[Key]
public int id { get; set; }
[Required]
[MaxLength(50)]
public required string turu { get; set; }
[Required]
[MaxLength(20)]
public required string kodu { get; set; }
[Required]
[MaxLength(50)]
public required string adi { get; set; }
[Required]
public required DateTime kts { get; set; }
[Required]
public required int kk { get; set; }
public bool aktif { get; set; }
}
}