Last active
September 8, 2018 22:48
-
-
Save mehmetalierol/216eaaa853125c76e00a8420199bd9c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Data; | |
using System.ComponentModel.DataAnnotations; | |
namespace Company.Application.Data.Entities | |
{ | |
/// <summary> | |
/// Firmaların bilgilerinin tutalacağı sınıf | |
/// </summary> | |
public class Organization : EntityBase | |
{ | |
/// <summary> | |
/// Firmanın adı. Sadece Name property sini zorunlu tututyoruz diğerleri optional olarak kalacak. | |
/// </summary> | |
[Required(ErrorMessage = "Key is required")] | |
[StringLength(100, MinimumLength = 3, | |
ErrorMessage = "Name Should be minimum 3 characters and a maximum 100 characters")] | |
public string Name { get; set; } | |
/// <summary> | |
/// Firmanın vergi numarası | |
/// </summary> | |
public string TaxNumber { get; set; } | |
/// <summary> | |
/// Firmanın vergi dairesi | |
/// </summary> | |
public string TaxOffice { get; set; } | |
/// <summary> | |
/// Firmanın adresi | |
/// </summary> | |
public string Address { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment