Files
DugunSalonu/Models/Organizasyon.cs

69 lines
2.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.Design.Serialization;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DugunSalonu.Models
{
public class Organizasyon
{
[Key]
public int id { get; set; }
[Required]
public required DateOnly rezervasyontarihi { get; set; } = DateOnly.FromDateTime(DateTime.Now);
[Required]
public required DateOnly sozlesmetarihi { get; set; }
[Required]
public required DateOnly organizasyontarihi { get; set; }
[Required]
public required string organizasyonsaati { get; set; } //referans tablosundan alınacak.
[Required]
[MaxLength(50)]
public required string adi { get; set; }
[Required]
[MaxLength(50)]
public required string soyadi { get; set; }
public string adisoyadi { get { return $"{adi} {soyadi}"; } }
[Required]
[MaxLength(10)]
[MinLength(10)]
public required int ceptel { get; set; }
[MaxLength(10)]
[MinLength(10)]
public int? ceptel2 { get; set; }
[Required]
[MaxLength(30)]
public required string gelinyore { get; set; }
[Required]
[MaxLength(30)]
public required string damatyore { get; set; }
[Required]
[MaxLength(400)]
public required string aciklama { get; set; }
[Required]
[MaxLength(10)]
public required string organizasyondurum { get; set; } // referans tablosundan alınacak.
[Required]
public required Decimal fiyat { get; set; }
[Required]
public required DateTime kts { get; set; } = DateTime.UtcNow;
[Required]
public required int kk { get; set; }
public byte[]? sozlesme { get; set; }
public int? iptal { get; set; }
public int? iptalkk { get; set; }
public DateTime? iptalkts { get; set; }
[MaxLength(200)]
public string? iptalaciklama { get; set; }
}
}